aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2022-11-28 10:52:23 +0000
committerJonathan Wakely <jwakely@redhat.com>2022-11-28 16:57:35 +0000
commit7b79fa930917da735f02b4f6911dfbb0a91f9714 (patch)
tree99c402155552fc6ac6a1d14b2785acbb580282a8 /gcc
parentf7a41b5cfd7406da1f2e5a0f1f813521d3dc2bb2 (diff)
downloadgcc-7b79fa930917da735f02b4f6911dfbb0a91f9714.zip
gcc-7b79fa930917da735f02b4f6911dfbb0a91f9714.tar.gz
gcc-7b79fa930917da735f02b4f6911dfbb0a91f9714.tar.bz2
libstdc++: Fix _Hash_bytes for I16LP32 targets [PR107885]
For H8/300 size_t is 32 bits wide, but (unsigned char)buf[2] << 16 promotes to int which is only 16 bits wide. The shift is then undefined. This fixes it by converting to size_t before shifting. libstdc++-v3/ChangeLog: PR libstdc++/107885 * libsupc++/hash_bytes.cc (_Hash_bytes): Convert to size_t instead of implicit integer promotion to 16 bits.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions