Commit bf22935f by Paolo Carlini Committed by Paolo Carlini

locale_facets.tcc (money_get::do_get(..., string_type&): Minor tweak to the previous commit.

2003-10-24  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/locale_facets.tcc (money_get::do_get(...,
	string_type&): Minor tweak to the previous commit.

From-SVN: r72892
parent e194201c
2003-10-24 Paolo Carlini <pcarlini@suse.de>
* include/bits/locale_facets.tcc (money_get::do_get(...,
string_type&): Minor tweak to the previous commit.
2003-10-24 Paolo Carlini <pcarlini@suse.de>
* include/bits/locale_facets.tcc (money_get::do_get(...,
string_type&): Disregard the previous commit: doesn't hurt but
doesn't accomplish anything useful either. This is the right
one, speeding up greatly the function in case of early fail.
......
......@@ -1284,7 +1284,7 @@ namespace std
__testvalid = false;
}
if (__testvalid)
if (__testvalid && __tmp_units.size())
{
const char_type __zero = __ctype.widen('0');
......@@ -1298,8 +1298,6 @@ namespace std
: __first);
}
if (__tmp_units.size())
{
// 22.2.6.1.2, p4
if (__sign.size() && __sign == __neg_sign
&& __tmp_units[0] != __zero)
......@@ -1323,7 +1321,6 @@ namespace std
}
else
__testvalid = false;
}
// Iff no more characters are available.
if (__c == __eof)
......
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