Commit 8ccce49
committed
Compiler (wasm): fix int division return type to Unnormalized
min_int / (-1) produces 0x40000000 as i32 which is not a valid
normalized 31-bit value. Declaring the return type as Normalized
caused mismatches when the value was compared after an (ref i31)
round-trip (e.g. function return).1 parent ba1c6f8 commit 8ccce49
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
418 | | - | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
419 | 425 | | |
420 | 426 | | |
421 | 427 | | |
422 | 428 | | |
423 | | - | |
| 429 | + | |
424 | 430 | | |
425 | 431 | | |
426 | 432 | | |
| |||
0 commit comments