diff --git a/asterius/src/Asterius/Builtins.hs b/asterius/src/Asterius/Builtins.hs index 8ebadb6463..a5f02d1608 100644 --- a/asterius/src/Asterius/Builtins.hs +++ b/asterius/src/Asterius/Builtins.hs @@ -786,7 +786,7 @@ generateRTSWrapper mod_sym func_sym param_vts ret_vts = [0 ..] param_vts ret = case ret_vts of - [I64] -> ([F64], truncUFloat64ToInt64) + [I64] -> ([F64], truncSFloat64ToInt64) _ -> (ret_vts, id) generateWrapperFunction :: EntitySymbol -> Function -> Function