locale_facets.tcc (time_put::put): Minor tweak to the previous commit.
authorPaolo Carlini <pcarlini@unitus.it>
Wed, 1 Oct 2003 15:43:07 +0000 (17:43 +0200)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 1 Oct 2003 15:43:07 +0000 (15:43 +0000)
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

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/locale_facets.tcc

index 4b776c89e216a0120e329012bab9a87e8e77ee13..7c1550a76b10b953a6ca3c9f4e87dcfe883d425f 100644 (file)
@@ -1,3 +1,8 @@
+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
index 62127b9e7fd79bcdc53d27ffe0d64af1f20d1f24..620e6e22d46b34fab69e1a51c87f74b0de0fae3c 100644 (file)
@@ -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;
     }