1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-29 16:41:45 -08:00

(doprnt1): Move cast to unsigned inside a shift.

This commit is contained in:
Richard M. Stallman 1996-02-26 20:24:16 +00:00
parent fcc303f4c1
commit d8e77dfd58

View file

@ -137,7 +137,7 @@ doprnt1 (lispstrings, buffer, bufsize, format, format_end, nargs, args)
size_bound = -size_bound;
size_bound += 50;
if (size_bound > (unsigned) (1 << (BITS_PER_INT - 1)))
if (size_bound > (((unsigned) 1) << (BITS_PER_INT - 1)))
error ("Format padding too large");
/* Make sure we have that much. */