From 3516928c75f38e4304b76f0697175dbb055af6a2 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 11 Sep 2014 22:50:09 +0200 Subject: [PATCH] updated for version 7.4.443 Problem: Error reported by ubsan when running test 72. Solution: Add type cast to unsigned. (Dominique Pelle) --- src/undo.c | 2 +- src/version.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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 diff --git a/src/version.c b/src/version.c index 70b408755..c04cb9bc3 100644 --- a/src/version.c +++ b/src/version.c @@ -741,6 +741,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 443, /**/ 442, /**/ -- 2.40.0