[M3commit] CVS Update: cm3
Jay Krell
jkrell at elego.de
Wed Feb 10 12:58:11 CET 2010
CVSROOT: /usr/cvs
Changes by: jkrell at birch. 10/02/10 12:58:11
Modified files:
cm3/m3-sys/m3back/src/: Stackx86.m3
Log message:
allow negating FIRST(INTEGER) even though it overflows
allows this test case to compile:
C:\dev2\cm3.2\m3-sys\m3tests\src\p1\p137>cm3
--- building in NT386 ---
new source -> compiling Main.m3
"..\Main.m3", line 35: doneg: Negate overflowed
1 error encountered
compilation failed => not building program "pgm.exe"
Fatal Error: package build failed
tempting to make TInt.Add/Subtract return the value
even if overflow, but for now, no.
This fix assumes two's complement, that is,
it assumes FIRST(INTEGER) = -FIRST(INTEGER)
More information about the M3commit
mailing list