Commit 6fe4816f by Jason Merrill

locale_facets.tcc (_M_extract_int): Avoid uninitialized warning.

        * include/bits/locale_facets.tcc (_M_extract_int): Avoid
        uninitialized warning.

From-SVN: r47877
parent 8d51ecf8
2001-12-11 Jason Merrill <jason@redhat.com>
* include/bits/locale_facets.tcc (_M_extract_int): Avoid
uninitialized warning.
2001-12-11 Loren Rittle <ljrittle@acm.org> 2001-12-11 Loren Rittle <ljrittle@acm.org>
* config/cpu/sparc/sparc32/bits/atomicity.h * config/cpu/sparc/sparc32/bits/atomicity.h
...@@ -22,6 +27,7 @@ ...@@ -22,6 +27,7 @@
* include/bits/locale_facets.h (__num_base::_S_scale_hex): Add. * include/bits/locale_facets.h (__num_base::_S_scale_hex): Add.
(__num_base::_S_scale_oct): Add. (__num_base::_S_scale_oct): Add.
* include/bits/locale_facets.tcc (_M_extract_int): Use them.
* src/locale.cc: Add definitions. * src/locale.cc: Add definitions.
* testsuite/27_io/istream_extractor_arith.cc (main): Call test13. * testsuite/27_io/istream_extractor_arith.cc (main): Call test13.
......
...@@ -303,8 +303,8 @@ namespace std ...@@ -303,8 +303,8 @@ namespace std
__max_digits = __max; __max_digits = __max;
else if (__base == 16) else if (__base == 16)
__max_digits = static_cast<int>(ceil(__max * _S_scale_hex)); __max_digits = static_cast<int>(ceil(__max * _S_scale_hex));
else if (__base == 8) else /* if (__base == 8) */
__max_digits = static_cast<int>(ceil(__max * _S_scale_oct)); __max_digits = static_cast<int>(ceil(__max * _S_scale_oct));
// Add in what's already been extracted. // Add in what's already been extracted.
__max_digits += __pos; __max_digits += __pos;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment