From fa9ac91269c58398f4308d3e392b03c9a3812f22 Mon Sep 17 00:00:00 2001 From: Marc Glisse Date: Tue, 28 Apr 2015 21:35:49 +0200 Subject: [PATCH] re PR libstdc++/65883 (numeric_limits::max() returns incorrect value) 2015-04-28 Marc Glisse PR libstdc++/65883 * include/std/limits (numeric_limits): Add missing unsigned. From-SVN: r222540 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/include/std/limits | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 1b2567d5b9c..442f91ce529 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2015-04-28 Marc Glisse + + PR libstdc++/65883 + * include/std/limits (numeric_limits): Add missing unsigned. + 2015-04-28 Stephan Bergmann * include/debug/vector (_Safe_vector::operator=): Add missing returns. diff --git a/libstdc++-v3/include/std/limits b/libstdc++-v3/include/std/limits index 550d81fa84a..793683f5219 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 \ \ -- 2.30.2