Commit 530ce551 by Paolo Carlini Committed by Paolo Carlini

locale_facets.tcc (time_put::put): Minor tweak to the previous commit.

2003-10-01  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/locale_facets.tcc (time_put::put): Minor
	tweak to the previous commit.

From-SVN: r71977
parent 52a16d08
2003-10-01 Paolo Carlini <pcarlini@unitus.it> 2003-10-01 Paolo Carlini <pcarlini@unitus.it>
* include/bits/locale_facets.tcc (time_put::put): Minor
tweak to the previous commit.
2003-10-01 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/12439 PR libstdc++/12439
* include/bits/locale_facets.tcc (time_put::put): Deal * include/bits/locale_facets.tcc (time_put::put): Deal
with the three issues pointed out by the PR. with the three issues pointed out by the PR.
......
...@@ -2007,9 +2007,9 @@ namespace std ...@@ -2007,9 +2007,9 @@ namespace std
ctype<_CharT> const& __ctype = use_facet<ctype<_CharT> >(__loc); ctype<_CharT> const& __ctype = use_facet<ctype<_CharT> >(__loc);
while (__beg != __end) while (__beg != __end)
{ {
const _CharT* __tmp = __beg; const _CharT __tmp = *__beg;
++__beg; ++__beg;
if (__ctype.narrow(*__tmp, 0) == '%' && __beg != __end) if (__ctype.narrow(__tmp, 0) == '%' && __beg != __end)
{ {
char __format; char __format;
char __mod = 0; char __mod = 0;
...@@ -2026,7 +2026,7 @@ namespace std ...@@ -2026,7 +2026,7 @@ namespace std
__s = this->do_put(__s, __io, __fill, __tm, __format, __mod); __s = this->do_put(__s, __io, __fill, __tm, __format, __mod);
} }
else else
*__s++ = *__tmp; *__s++ = __tmp;
} }
return __s; return __s;
} }
......
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