locale_facets.tcc (money_put<>::_M_insert): Fix warning regression.

2004-03-03  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/locale_facets.tcc (money_put<>::_M_insert):
	Fix warning regression.

From-SVN: r78861
This commit is contained in:
Paolo Carlini 2004-03-03 20:51:22 +00:00 committed by Paolo Carlini
parent fc9232c98e
commit ced3ad4d7c
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2004-03-03 Paolo Carlini <pcarlini@suse.de>
* include/bits/locale_facets.tcc (money_put<>::_M_insert):
Fix warning regression.
2004-03-03 Paolo Carlini <pcarlini@suse.de>
* include/bits/locale_facets.tcc (money_put<>::_M_insert):

View File

@ -1451,12 +1451,13 @@ namespace std
__sign = __lc->_M_positive_sign;
__sign_size = __lc->_M_positive_sign_size;
}
else if (__digits.size())
else
{
__p = __lc->_M_neg_format;
__sign = __lc->_M_negative_sign;
__sign_size = __lc->_M_negative_sign_size;
++__beg;
if (__digits.size())
++__beg;
}
// Look for valid numbers in the ctype facet within input digits.