This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

bits/sstream.tcc



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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]