[M3commit] CVS Update: cm3

Antony Hosking hosking at elego.de
Fri Jan 8 17:06:48 CET 2010


CVSROOT:	/usr/cvs
Changes by:	hosking at birch.	10/01/08 17:06:48

Modified files:
	cm3/m3-sys/m3front/src/builtinOps/: Dec.m3 Inc.m3 

Log message:
	Fix bounds checking on INC/DEC.
	
	This was incorrectly implemented to allow success for:
	
	VAR v: CARDINAL := LAST(INTEGER);
	BEGIN INC(v) END;
	
	because it did not check for integer increment wrapping to an illegal CARDINAL value.




More information about the M3commit mailing list