summaryrefslogtreecommitdiff
path: root/src/undo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/undo.c')
-rw-r--r--src/undo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/undo.c b/src/undo.c
index db6ea29ab..24dcf0548 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -1019,7 +1019,7 @@ undo_read_4c(bi)
int n;
undo_read(bi, buf, (size_t)4);
- n = (buf[0] << 24) + (buf[1] << 16) + (buf[2] << 8) + buf[3];
+ n = ((unsigned)buf[0] << 24) + (buf[1] << 16) + (buf[2] << 8) + buf[3];
return n;
}
#endif