From 82bec8bfdf87b75e0a055a4739a69f5090ed699d Mon Sep 17 00:00:00 2001 From: Alexander Barkov Date: Tue, 15 Dec 2015 11:04:51 +0400 Subject: MDEV-9265 SuSE patches: Suspicious implicit sign extension --- strings/ctype-ucs2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'strings') diff --git a/strings/ctype-ucs2.c b/strings/ctype-ucs2.c index 5780fff003a..cae85f38c12 100644 --- a/strings/ctype-ucs2.c +++ b/strings/ctype-ucs2.c @@ -1911,7 +1911,8 @@ struct charset_info_st my_charset_utf16le_bin= #define IS_MB4_CHAR(b0,b1,b2,b3) (IS_UTF32_MBHEAD4(b0,b1)) -#define MY_UTF32_WC4(b0,b1,b2,b3) ((b0 << 24) + (b1 << 16) + (b2 << 8) + (b3)) +#define MY_UTF32_WC4(b0,b1,b2,b3) ((((my_wc_t)b0) << 24) + (b1 << 16) + \ + (b2 << 8) + (b3)) static inline int my_weight_utf32_general_ci(uchar b0, uchar b1, uchar b2, uchar b3) -- cgit v1.2.1