[M3commit] CVS Update: cm3

Jay Krell jkrell at elego.de
Sun Jan 17 14:23:01 CET 2010


CVSROOT:	/usr/cvs
Changes by:	jkrell at birch.	10/01/17 14:23:01

Modified files:
	cm3/m3-libs/m3core/src/Csupport/Common/: hand.c 

Log message:
	also fix mod where inputs are minimum and negative
	Modula-3 mod (as opposed to every other programming
	language) is always supposed to have the sign
	of its second input, or be 0
	However it was backwards, depending on
	compiler and optimizer (optimizer tends to *fix* the bug)
	
	test code included, much cleaner this time
	
	(see http://www.modula3.com/cm3/doc/reference/arithmetic.html)




More information about the M3commit mailing list