aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--wctype/wctype.h3
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c36a715..07c1d47 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+1999-02-16 Ulrich Drepper <drepper@cygnus.com>
+
+ * wctype/wctype.h (_ISwbit): Cast result of shift operations to
+ int to avoid warning about `ISO C restricts enumerator values to
+ range of `int''.
+
1999-02-16 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* elf/dlfcn.h: Fix typo.
diff --git a/wctype/wctype.h b/wctype/wctype.h
index 0ecb69d..2ecd33a 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