From: Paolo Carlini Date: Fri, 17 Sep 2004 14:01:18 +0000 (+0000) Subject: fstream.tcc (xsgetn): Slightly tweak conditional, as per Nathan's original suggestion. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c93af6f23d57c9199a6f8e1346c449b29efb5b54;p=gcc.git fstream.tcc (xsgetn): Slightly tweak conditional, as per Nathan's original suggestion. 2004-09-17 Paolo Carlini * include/bits/fstream.tcc (xsgetn): Slightly tweak conditional, as per Nathan's original suggestion. From-SVN: r87647 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 6dfa61ead49..f3f965d25e9 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2004-09-17 Paolo Carlini + + * include/bits/fstream.tcc (xsgetn): Slightly tweak conditional, + as per Nathan's original suggestion. + 2004-09-17 Paolo Carlini * testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean diff --git a/libstdc++-v3/include/bits/fstream.tcc b/libstdc++-v3/include/bits/fstream.tcc index d3ea37ffab1..25a4d48cb72 100644 --- a/libstdc++-v3/include/bits/fstream.tcc +++ b/libstdc++-v3/include/bits/fstream.tcc @@ -527,7 +527,7 @@ namespace std { if (__avail == 1) *__s = *this->gptr(); - else if (__avail > 1) + else traits_type::copy(__s, this->gptr(), __avail); __s += __avail; this->gbump(__avail);