Division of -2^31 by -1
Closed this issue · 1 comments
apt1002 commented
Should raise an error.
rrthomas commented
In fact, the Forth standard says "In all integer arithmetic operations, both overflow and underflow shall be ignored. The value returned when either overflow or underflow occurs is implementation defined." So instead, define the result as ARM does: -(2^31)/-1 = -(2^31).