summaryrefslogtreecommitdiff
path: root/src/undo.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-09-11 22:50:09 +0200
committerBram Moolenaar <Bram@vim.org>2014-09-11 22:50:09 +0200
commit3516928c75f38e4304b76f0697175dbb055af6a2 (patch)
treecc856475a4ac2f3d072fa8aa067b695dd163c14c /src/undo.c
parent3089a1068dd5a0645cea0df09a1c8a1f00146649 (diff)
downloadvim-git-3516928c75f38e4304b76f0697175dbb055af6a2.tar.gz
updated for version 7.4.443v7.4.443
Problem: Error reported by ubsan when running test 72. Solution: Add type cast to unsigned. (Dominique Pelle)
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