Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Commit

Permalink
Fix "float unrepresentable in integer range" runtime error due to inc…
Browse files Browse the repository at this point in the history
…orrect unsigned conversion (#632)
  • Loading branch information
TerrorJack authored May 3, 2020
1 parent 70620a1 commit 83b1afe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asterius/src/Asterius/Builtins.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 83b1afe

Please sign in to comment.