PR libstdc++/89629 fix _Hash_bytes for lengths > INT_MAX
authorJonathan Wakely <jwakely@redhat.com>
Mon, 11 Mar 2019 13:46:05 +0000 (13:46 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 11 Mar 2019 13:46:05 +0000 (13:46 +0000)
commit1a823c9ae986d2d45e6aa7867c4c8e3c200e0b5c
tree62b5804ba5b4935833a134d14cf6f0249d60df56
parentac5aeaae413341adc57926e8ab43fd1e3ec9f7c2
PR libstdc++/89629 fix _Hash_bytes for lengths > INT_MAX

PR libstdc++/89629
* libsupc++/hash_bytes.cc [__SIZEOF_SIZE_T__ == 8] (_Hash_bytes):
Use correct type for len_aligned.
* testsuite/20_util/hash/89629.cc: New test.

From-SVN: r269584
libstdc++-v3/ChangeLog
libstdc++-v3/libsupc++/hash_bytes.cc
libstdc++-v3/testsuite/20_util/hash/89629.cc [new file with mode: 0644]