codecvt_members.cc (codecvt::do_in): Minor stylistic tweak.
authorPaolo Carlini <pcarlini@suse.de>
Sun, 30 Nov 2003 15:18:27 +0000 (15:18 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sun, 30 Nov 2003 15:18:27 +0000 (15:18 +0000)
2003-11-30  Paolo Carlini  <pcarlini@suse.de>

* config/locale/gnu/codecvt_members.cc (codecvt::do_in):
Minor stylistic tweak.

From-SVN: r74060

libstdc++-v3/ChangeLog
libstdc++-v3/config/locale/gnu/codecvt_members.cc

index b0030a5ac79176cbdd59dfdf811e8c3ea210b49c..9dd4d0097f79afaa5266135dbe1a61f03bb8160d 100644 (file)
@@ -1,3 +1,8 @@
+2003-11-30  Paolo Carlini  <pcarlini@suse.de>
+
+       * config/locale/gnu/codecvt_members.cc (codecvt::do_in):
+       Minor stylistic tweak.
+
 2003-11-30  Paolo Carlini  <pcarlini@suse.de>
 
        * include/bits/locale_facets.tcc (num_put::do_put(..., bool)):
index aa9fcec684548c42b076e2417e4229bab2941a4f..b0c9891a165ea01415c4e207dd2f5b6ec2186cf1 100644 (file)
@@ -152,7 +152,7 @@ namespace std
            // In case of error, in order to stop at the exact place we
            // have to start again from the beginning with a series of
            // mbrtowc.
-           for (;;)
+           for (;; ++__to_next)
              {
                const size_t __conv_err = mbrtowc(__to_next, __from,
                                                  __from_end - __from,
@@ -161,7 +161,6 @@ namespace std
                    || __conv_err == static_cast<size_t>(-2))
                  break;
                __from += __conv_err;
-               ++__to_next;
              }
            __from_next = __from;
            __state = __tmp_state;