From: Richard M. Stallman Date: Tue, 17 Dec 1996 06:20:27 +0000 (+0000) Subject: (nbits): Add some casts. X-Git-Tag: GNU_ORIG~20 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/2f9040d9ba4a7e365bc201a09273ec4b52b6bb31 (nbits): Add some casts. --- diff --git a/src/reduce.c b/src/reduce.c index 9f9c2ee7..b440516e 100644 --- a/src/reduce.c +++ b/src/reduce.c @@ -93,7 +93,7 @@ unsigned i; int count = 0; while (i != 0) { - i ^= (i & -i); + i ^= (i & ((unsigned) (- (int) i))); ++count; } return count;