diff options
Diffstat (limited to 'libstdc++-v3/src/locale_facets.cc')
-rw-r--r-- | libstdc++-v3/src/locale_facets.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libstdc++-v3/src/locale_facets.cc b/libstdc++-v3/src/locale_facets.cc index 89c7e497890..d62fb04fcb6 100644 --- a/libstdc++-v3/src/locale_facets.cc +++ b/libstdc++-v3/src/locale_facets.cc @@ -1,5 +1,5 @@ // Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, -// 2006, 2007 +// 2006, 2007, 2008, 2009 // Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free @@ -110,7 +110,8 @@ _GLIBCXX_BEGIN_NAMESPACE(std) // ... but the first parsed grouping can be <= numpunct // grouping (only do the check if the numpunct char is > 0 // because <= 0 means any size is ok). - if (static_cast<signed char>(__grouping[__min]) > 0) + if (static_cast<signed char>(__grouping[__min]) > 0 + && __grouping[__min] != __gnu_cxx::__numeric_traits<char>::__max) __test &= __grouping_tmp[0] <= __grouping[__min]; return __test; } |