mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -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:
@@ -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
|
||||
|
Reference in New Issue
Block a user