about summary refs log tree commit diff
diff options
context:
space:
mode:
-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