about summary refs log tree commit diff
path: root/wctype
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-12-05 20:32:18 +0000
committerUlrich Drepper <drepper@redhat.com>1998-12-05 20:32:18 +0000
commit4781309ddc9957917646cf0bb8356058692221a9 (patch)
treebb828262cbceaa0f6c26aa5ebba484a790a93664 /wctype
parent685c3086ea026ba41ca2c2085f64af1766104d66 (diff)
downloadglibc-4781309ddc9957917646cf0bb8356058692221a9.tar.gz
glibc-4781309ddc9957917646cf0bb8356058692221a9.tar.xz
glibc-4781309ddc9957917646cf0bb8356058692221a9.zip
(_ISwbit): Protext use of parameter with parentheses.
Diffstat (limited to 'wctype')
-rw-r--r--wctype/wctype.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/wctype/wctype.h b/wctype/wctype.h
index 43ff8e4d1a..710275888a 100644
--- a/wctype/wctype.h
+++ b/wctype/wctype.h
@@ -67,9 +67,9 @@ typedef unsigned long int wctype_t;
 
 #  include <endian.h>
 #  if __BYTE_ORDER == __BIG_ENDIAN
-#   define _ISwbit(bit)	(1 << bit)
+#   define _ISwbit(bit)	(1 << (bit))
 #  else /* __BYTE_ORDER == __LITTLE_ENDIAN */
-#   define _ISwbit(bit)	(bit < 8 ? 1UL << bit << 24 : 1UL << (bit + 8))
+#   define _ISwbit(bit)	((bit) < 8 ? 1UL << (bit) << 24 : 1UL << ((bit) + 8))
 #  endif
 
 enum