aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libstdc++/include/bits/locale_facets.tcc
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libstdc++/include/bits/locale_facets.tcc')
-rw-r--r--contrib/libstdc++/include/bits/locale_facets.tcc2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/libstdc++/include/bits/locale_facets.tcc b/contrib/libstdc++/include/bits/locale_facets.tcc
index b8b9918741ff..9ad4dfea3897 100644
--- a/contrib/libstdc++/include/bits/locale_facets.tcc
+++ b/contrib/libstdc++/include/bits/locale_facets.tcc
@@ -1278,7 +1278,7 @@ namespace std
}
// Strip leading zeros.
- while (__temp_units[0] == __ctype.widen('0'))
+ while (__temp_units.size() > 1 && __temp_units[0] == __ctype.widen('0'))
__temp_units.erase(__temp_units.begin());
if (__sign.size() && __sign == __neg_sign)