0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.4.443

Problem:    Error reported by ubsan when running test 72.
Solution:   Add type cast to unsigned. (Dominique Pelle)
This commit is contained in:
Bram Moolenaar
2014-09-11 22:50:09 +02:00
parent 3089a1068d
commit 3516928c75
2 changed files with 3 additions and 1 deletions

View File

@@ -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

View File

@@ -741,6 +741,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
443,
/**/
442,
/**/