bug fix in cstoper.c: max_long_sign was computed wrong

This commit is contained in:
ceriel 1987-05-11 14:19:13 +00:00
parent b6e994767c
commit aab8234e55

View file

@ -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];
}