Subject: CVS commit: basesrc
To: None <source-changes@netbsd.org>
From: James Chacon <jmc@netbsd.org>
List: source-changes
Date: 05/06/2001 09:20:39
Module Name:	basesrc
Committed By:	jmc
Date:		Sun May  6 06:20:39 UTC 2001

Modified Files:
	basesrc/bin/expr: expr.y

Log Message:
Various cleanups/fixes.
Change the add/subtract overflow checks to use an unsigned to do the op
and then cast back into the signed var to check the signs.

Make multiply shortcut on either right or left being 0.
Make multiply's overflow test not fail on simple cases like 1 * -1
Make the multiple overflow test pass all the regress tests.


To generate a diff of this commit:
cvs rdiff -r1.26 -r1.27 basesrc/bin/expr/expr.y

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.