detecting integer overflow

Bruce Karsh karsh at trifolium.esd.sgi.com
Sat Aug 25 11:10:07 AEST 1990


In article <67688 at sgi.sgi.com> karsh at trifolium.sgi.com (Bruce Karsh) writes:

>	if( (~a^b && a^c) < 0) handle_overflow();

This should be

 	if( (~a^b &  a^c) < 0) handle_overflow();

I.e., a single &.

Ted Wilcox at sgi pointed this out to me.

			Bruce Karsh
			karsh at sgi.com



More information about the Comp.sys.sgi mailing list