aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2024-11-11 11:23:08 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2024-11-11 18:57:16 +0000
commitd8992f70a59b178de85305c542eb45d1676bf0a9 (patch)
treeb342040b07240dd892d1ac73f4dcb6775e1a410e /libstdc++-v3
parent7b5c974dfc83edfb534dc0550dee8b0e8fd32d96 (diff)
downloadgcc-d8992f70a59b178de85305c542eb45d1676bf0a9.zip
gcc-d8992f70a59b178de85305c542eb45d1676bf0a9.tar.gz
gcc-d8992f70a59b178de85305c542eb45d1676bf0a9.tar.bz2
libstdc++: Add parentheses around operand of |
libstdc++-v3/ChangeLog: * include/bits/unicode.h (_Utf_iterator::_M_read_utf16): Add parentheses.
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/include/bits/unicode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/bits/unicode.h b/libstdc++-v3/include/bits/unicode.h
index d79824c..24b1ac3 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;
}