diff options
author | Marc Glisse <marc.glisse@inria.fr> | 2015-04-28 21:35:49 +0200 |
---|---|---|
committer | Marc Glisse <glisse@gcc.gnu.org> | 2015-04-28 19:35:49 +0000 |
commit | fa9ac91269c58398f4308d3e392b03c9a3812f22 (patch) | |
tree | 9eb1704d8d0a0a7367e379cf3f1a01242f0ef0b5 | |
parent | 77b7d71e793213a330ccb19dbf3c54323c656539 (diff) | |
download | gcc-fa9ac91269c58398f4308d3e392b03c9a3812f22.zip gcc-fa9ac91269c58398f4308d3e392b03c9a3812f22.tar.gz gcc-fa9ac91269c58398f4308d3e392b03c9a3812f22.tar.bz2 |
re PR libstdc++/65883 (numeric_limits<unsigned __int128>::max() returns incorrect value)
2015-04-28 Marc Glisse <marc.glisse@inria.fr>
PR libstdc++/65883
* include/std/limits (numeric_limits): Add missing unsigned.
From-SVN: r222540
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/include/std/limits | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 1b2567d..442f91c 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2015-04-28 Marc Glisse <marc.glisse@inria.fr> + + PR libstdc++/65883 + * include/std/limits (numeric_limits): Add missing unsigned. + 2015-04-28 Stephan Bergmann <sbergman@redhat.com> * include/debug/vector (_Safe_vector::operator=): Add missing returns. diff --git a/libstdc++-v3/include/std/limits b/libstdc++-v3/include/std/limits index 550d81f..793683f 100644 --- a/libstdc++-v3/include/std/limits +++ b/libstdc++-v3/include/std/limits @@ -1490,7 +1490,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION min() _GLIBCXX_USE_NOEXCEPT { return 0; } \ \ static _GLIBCXX_CONSTEXPR unsigned TYPE \ - max() _GLIBCXX_USE_NOEXCEPT { return __glibcxx_max_b (TYPE, BITSIZE); } \ + max() _GLIBCXX_USE_NOEXCEPT \ + { return __glibcxx_max_b (unsigned TYPE, BITSIZE); } \ \ UEXT \ \ |