This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
bits/sstream.tcc
- To: libstdc++ at sourceware dot cygnus dot com
- Subject: bits/sstream.tcc
- From: ncm at nospam dot cantrip dot org
- Date: Fri, 24 Mar 2000 22:51:59 -0800
- Reply-To: libstdc++ at sourceware dot cygnus dot com
Minor optimization...
Nathan Myers
ncm@cantrip.org
Index: sstream.tcc
===================================================================
RCS file: /cvs/libstdc++/libstdc++/bits/sstream.tcc,v
retrieving revision 1.30
diff -u -r1.30 sstream.tcc
--- sstream.tcc 2000/03/23 23:09:00 1.30
+++ sstream.tcc 2000/03/25 06:48:59
@@ -123,8 +123,7 @@
bool __testout = __mode & ios_base::out && _M_mode & ios_base::out;
bool __testboth = __testin && __testout && __way != ios_base::cur;
- if (((__testin && !__testout) || (__testout && !__testin) || __testboth)
- && _M_buf_size)
+ if ((__testin != __testout || __testboth) && _M_buf_size)
{
char_type* __beg = _M_buf;
char_type* __curi = NULL;