Author: sebor
Date: Sun Jan  4 14:45:22 2009
New Revision: 731378

URL: http://svn.apache.org/viewvc?rev=731378&view=rev
Log:
2009-01-04  Martin Sebor  <se...@apache.org>

        STDCXX-791
        * tests/include/rw_char.h (~UserInt): Parenthesized an expression
        to silence the annoying gcc 4.3 +Wparentheses warning.

Modified:
    stdcxx/branches/4.2.x/tests/include/rw_char.h

Modified: stdcxx/branches/4.2.x/tests/include/rw_char.h
URL: 
http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/tests/include/rw_char.h?rev=731378&r1=731377&r2=731378&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/tests/include/rw_char.h (original)
+++ stdcxx/branches/4.2.x/tests/include/rw_char.h Sun Jan  4 14:45:22 2009
@@ -162,8 +162,8 @@
     }
 
     ~UserInt () {
-        RW_ASSERT (ptr_ == &i_);            // verify *this is valid
-        RW_ASSERT (-1 <= i_ == i_ < 257);   // i may be invalid
+        RW_ASSERT (ptr_ == &i_);                // verify *this is valid
+        RW_ASSERT ((-1 <= i_) == (i_ < 257));   // i may be invalid
 
         i_   = _RWSTD_INT_MIN;   // invalidate
         ptr_ = &ptr_;            // invalidate


Reply via email to