re PR libstdc++/65883 (numeric_limits<unsigned __int128>::max() returns incorrect...
authorMarc Glisse <marc.glisse@inria.fr>
Tue, 28 Apr 2015 19:35:49 +0000 (21:35 +0200)
committerMarc Glisse <glisse@gcc.gnu.org>
Tue, 28 Apr 2015 19:35:49 +0000 (19:35 +0000)
2015-04-28  Marc Glisse  <marc.glisse@inria.fr>

PR libstdc++/65883
* include/std/limits (numeric_limits): Add missing unsigned.

From-SVN: r222540

libstdc++-v3/ChangeLog
libstdc++-v3/include/std/limits

index 1b2567d5b9c1943a90a2a2c4857d0944b7e1d827..442f91ce529c4eb8c1877b6b74f6c41166d28836 100644 (file)
@@ -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.
index 550d81fa84a6bb2f79775d9c8fd6b5704bea5b3a..793683f52199a0898726504ae59bfcebb304e087 100644 (file)
@@ -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                                                                     \
                                                                                \