]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Tue, 16 Feb 1999 17:10:53 +0000 (17:10 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 16 Feb 1999 17:10:53 +0000 (17:10 +0000)
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''.

ChangeLog
wctype/wctype.h

index c36a71595bce10b2167d8f576dba2b92ba5f9b97..07c1d47eda07e51c1dce0bf18e625207e849766f 100644 (file)
--- 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.
index 0ecb69d6bd8b4df83085d0f7f9febf04facd1ad9..2ecd33a71159810f322f6614a6c835835e087230 100644 (file)
@@ -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