ctype_inline.h (is): Fix order of expressions.

2000-11-22  Richard Henderson  <rth@redhat.com>

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

From-SVN: r37681
This commit is contained in:
Richard Henderson 2000-11-22 19:03:33 -08:00 committed by Benjamin Kosnik
parent 9196ece5c2
commit ea88c0f77e
2 changed files with 5 additions and 1 deletions

View 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.

View 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);