diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index b0030a5ac79..9dd4d0097f7 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2003-11-30 Paolo Carlini + + * config/locale/gnu/codecvt_members.cc (codecvt::do_in): + Minor stylistic tweak. + 2003-11-30 Paolo Carlini * include/bits/locale_facets.tcc (num_put::do_put(..., bool)): diff --git a/libstdc++-v3/config/locale/gnu/codecvt_members.cc b/libstdc++-v3/config/locale/gnu/codecvt_members.cc index aa9fcec6845..b0c9891a165 100644 --- a/libstdc++-v3/config/locale/gnu/codecvt_members.cc +++ b/libstdc++-v3/config/locale/gnu/codecvt_members.cc @@ -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(-2)) break; __from += __conv_err; - ++__to_next; } __from_next = __from; __state = __tmp_state;