ctype_inline.h (is): Fix order of expressions.
authorRichard Henderson <rth@redhat.com>
Thu, 23 Nov 2000 03:03:33 +0000 (19:03 -0800)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Thu, 23 Nov 2000 03:03:33 +0000 (03:03 +0000)
2000-11-22  Richard Henderson  <rth@redhat.com>

* config/os/bsd/bits/ctype_inline.h (is): Fix order of expressions.

From-SVN: r37681

libstdc++-v3/ChangeLog
libstdc++-v3/config/os/bsd/bits/ctype_inline.h

index b6bc7f8baafff8a9c282513c7639238e57faa4e6..bc9df97acfa05d99c450d4fd58e008deead5c3e3 100644 (file)
@@ -1,3 +1,7 @@
+2000-11-22  Richard Henderson  <rth@redhat.com>
+
+       * config/os/bsd/bits/ctype_inline.h (is): Fix order of expressions.
+       
 2000-11-22  Phil Edwards  <pme@sources.redhat.com>
 
        * porting.texi:  Minor tweaks to vocabulary.
index c2a49c4025df128cba2374a878e8e6e3cfa69298..92ffe703fd6a1307f443ef9e1d6e5d75227bbafa 100644 (file)
@@ -38,7 +38,7 @@
   ctype<char>::
   is(mask __m, char __c) const throw()
   { 
-    if (__m & digit || __m & xdigit)
+    if (__m & (digit | xdigit))
       return __isctype(__c, __m);
     else
       return __istype(__c, __m);