From: ceriel Date: Mon, 11 May 1987 14:19:13 +0000 (+0000) Subject: bug fix in cstoper.c: max_long_sign was computed wrong X-Git-Tag: release-5-5~4169 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=aab8234e555a2654b6292d5829f1a8ef88561418;p=ack.git bug fix in cstoper.c: max_long_sign was computed wrong --- diff --git a/lang/cem/cemcom/cstoper.c b/lang/cem/cemcom/cstoper.c index d313efa7f..b561225f3 100644 --- a/lang/cem/cemcom/cstoper.c +++ b/lang/cem/cemcom/cstoper.c @@ -229,9 +229,9 @@ init_cst() full_mask[i] = bt; } mach_long_size = i; - mach_long_sign = 1 << (mach_long_size * 8 - 1); + mach_long_sign = 1L << (mach_long_size * 8 - 1); if (long_size < mach_long_size) fatal("sizeof (long) insufficient on this machine"); - max_int = full_mask[int_size] & ~(1 << (int_size * 8 - 1)); + max_int = full_mask[int_size] & ~(1L << (int_size * 8 - 1)); max_unsigned = full_mask[int_size]; }