From: Marc Glisse Date: Tue, 28 Apr 2015 19:35:49 +0000 (+0200) Subject: re PR libstdc++/65883 (numeric_limits::max() returns incorrect... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fa9ac91269c58398f4308d3e392b03c9a3812f22;p=gcc.git 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 --- 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 \ \