summaryrefslogtreecommitdiff
path: root/wctype
diff options
context:
space:
mode:
Diffstat (limited to 'wctype')
-rw-r--r--wctype/wctype.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/wctype/wctype.h b/wctype/wctype.h
index 0ecb69d6bd..2ecd33a711 100644
--- a/wctype/wctype.h
+++ b/wctype/wctype.h
@@ -69,7 +69,8 @@ typedef unsigned long int wctype_t;
# if __BYTE_ORDER == __BIG_ENDIAN
# 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 ? (int) (1UL << (bit) << 24) : (int) (1UL << ((bit) + 8)))
# endif
enum