This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
V3 PATCH: Typo in numeric_limits
- From: Mark Mitchell <mark at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Wed, 25 Sep 2002 11:31:35 -0700
- Subject: V3 PATCH: Typo in numeric_limits
- Reply-to: mark at codesourcery dot com
Richard Henderson made a highly uncharacteristic mistake.
After I got up off the floor, I fixed the bug.
Tested on i686-pc-linux-gnu, applied on the mainline.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
2002-09-25 Mark Mitchell <mark@codesourcery.com>
* include/std/std_limits.h (numeric_limits<unsigned char>::digits):
Fix typo.
Index: libstdc++-v3/include/std/std_limits.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/std/std_limits.h,v
retrieving revision 1.16
diff -c -p -r1.16 std_limits.h
*** libstdc++-v3/include/std/std_limits.h 23 Sep 2002 11:24:56 -0000 1.16
--- libstdc++-v3/include/std/std_limits.h 25 Sep 2002 06:47:09 -0000
*************** namespace std
*** 378,384 ****
static unsigned char max() throw()
{ return __SCHAR_MAX__ * 2U + 1; }
! static const int digits = __glibcpp_digits10 (unsigned char);
static const int digits10 = __glibcpp_digits10 (unsigned char);
static const bool is_signed = false;
static const bool is_integer = true;
--- 378,384 ----
static unsigned char max() throw()
{ return __SCHAR_MAX__ * 2U + 1; }
! static const int digits = __glibcpp_digits (unsigned char);
static const int digits10 = __glibcpp_digits10 (unsigned char);
static const bool is_signed = false;
static const bool is_integer = true;