From: Jonathan Wakely Date: Mon, 11 Nov 2024 11:23:08 +0000 (+0000) Subject: libstdc++: Add parentheses around operand of | X-Git-Tag: basepoints/gcc-16~4447 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d8992f70a59b178de85305c542eb45d1676bf0a9;p=thirdparty%2Fgcc.git libstdc++: Add parentheses around operand of | libstdc++-v3/ChangeLog: * include/bits/unicode.h (_Utf_iterator::_M_read_utf16): Add parentheses. --- diff --git a/libstdc++-v3/include/bits/unicode.h b/libstdc++-v3/include/bits/unicode.h index d79824c3ddb1..24b1ac3d53d6 100644 --- a/libstdc++-v3/include/bits/unicode.h +++ b/libstdc++-v3/include/bits/unicode.h @@ -377,7 +377,7 @@ namespace __unicode { ++_M_curr(); __to_incr = 2; - uint32_t __x = (__u & 0x3F) << 10 | __u2 & 0x3FF; + uint32_t __x = (__u & 0x3F) << 10 | (__u2 & 0x3FF); uint32_t __w = (__u >> 6) & 0x1F; __c = (__w + 1) << 16 | __x; }