summaryrefslogtreecommitdiff
path: root/src/doprnt.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-02-26 20:24:16 +0000
committerRichard M. Stallman <rms@gnu.org>1996-02-26 20:24:16 +0000
commit4c4081f3c7dc08195e440e25d343aa6601190c50 (patch)
tree77bd179e720561f75086f81b655b4a0d70b68ed7 /src/doprnt.c
parentaf00935834172dde87dd749f00decd461d251883 (diff)
downloademacs-4c4081f3c7dc08195e440e25d343aa6601190c50.tar.gz
(doprnt1): Move cast to unsigned inside a shift.
Diffstat (limited to 'src/doprnt.c')
-rw-r--r--src/doprnt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doprnt.c b/src/doprnt.c
index 2a3839d389e..3a1e41741c5 100644
--- a/src/doprnt.c
+++ b/src/doprnt.c
@@ -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. */