]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix return type of ranges::ssize for 128-bit integer [PR 100824]
authorJonathan Wakely <jwakely@redhat.com>
Sat, 5 Jun 2021 10:42:01 +0000 (11:42 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 11 Jun 2021 22:23:56 +0000 (23:23 +0100)
commit2ba1680d3e9f3bb99783519a08eed6435f131045
treeafb5ab895c79faf76a190fc6d603208b48456b27
parent1112f1226a27cd772aec7e50514a121c5c04bdb7
libstdc++: Fix return type of ranges::ssize for 128-bit integer [PR 100824]

Signed-off-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/ChangeLog:

PR libstdc++/100824
* include/bits/ranges_base.h (_SSize): Return signed type.
* testsuite/std/ranges/access/ssize.cc: Check with __int128.

(cherry picked from commit 96963713f6a648a0ed890450e02ebdd8ff583b14)
libstdc++-v3/include/bits/ranges_base.h
libstdc++-v3/testsuite/std/ranges/access/ssize.cc