mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-01 13:34:15 +00:00
crash on rem div by zero
This commit is contained in:
parent
dd86b11150
commit
b3dfdb562b
88 changed files with 554 additions and 534 deletions
|
|
@ -309,7 +309,7 @@ map_symbol_to_lowlevel! {
|
|||
NumDivFrac <= NUM_DIV_FRAC;
|
||||
NumDivCeilUnchecked <= NUM_DIV_CEIL;
|
||||
NumDivTruncUnchecked <= NUM_DIV_TRUNC_UNCHECKED;
|
||||
NumRemUnchecked <= NUM_REM;
|
||||
NumRemUnchecked <= NUM_REM_UNCHECKED;
|
||||
NumIsMultipleOf <= NUM_IS_MULTIPLE_OF;
|
||||
NumAbs <= NUM_ABS;
|
||||
NumNeg <= NUM_NEG;
|
||||
|
|
|
|||
|
|
@ -1276,6 +1276,7 @@ define_builtins! {
|
|||
164 NUM_BITWISE_NOT: "bitwiseNot"
|
||||
165 NUM_IS_APPROX_EQ: "isApproxEq"
|
||||
166 NUM_DIV_TRUNC_UNCHECKED: "divTruncUnchecked" // traps on division by zero
|
||||
167 NUM_REM_UNCHECKED: "remUnchecked" // traps on division by zero
|
||||
}
|
||||
4 BOOL: "Bool" => {
|
||||
0 BOOL_BOOL: "Bool" exposed_type=true // the Bool.Bool type alias
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue