diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-01 15:43:07 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-01 15:43:07 +0000 |
commit | 80d7313892a788503b35573d937665c2e3b3ea24 (patch) | |
tree | 5c8c89a774d6f3fb39f6bf00d8c3aa32ad41031d /libstdc++-v3 | |
parent | 790b15d9fc323ca91bd03962be8b1f0f7b1617fe (diff) |
2003-10-01 Paolo Carlini <pcarlini@unitus.it>
* include/bits/locale_facets.tcc (time_put::put): Minor
tweak to the previous commit.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71977 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/locale_facets.tcc | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 4b776c89e21..7c1550a76b1 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,10 @@ 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 * include/bits/locale_facets.tcc (time_put::put): Deal with the three issues pointed out by the PR. diff --git a/libstdc++-v3/include/bits/locale_facets.tcc b/libstdc++-v3/include/bits/locale_facets.tcc index 62127b9e7fd..620e6e22d46 100644 --- a/libstdc++-v3/include/bits/locale_facets.tcc +++ b/libstdc++-v3/include/bits/locale_facets.tcc @@ -2007,9 +2007,9 @@ namespace std ctype<_CharT> const& __ctype = use_facet<ctype<_CharT> >(__loc); while (__beg != __end) { - const _CharT* __tmp = __beg; + const _CharT __tmp = *__beg; ++__beg; - if (__ctype.narrow(*__tmp, 0) == '%' && __beg != __end) + if (__ctype.narrow(__tmp, 0) == '%' && __beg != __end) { char __format; char __mod = 0; @@ -2026,7 +2026,7 @@ namespace std __s = this->do_put(__s, __io, __fill, __tm, __format, __mod); } else - *__s++ = *__tmp; + *__s++ = __tmp; } return __s; } |