about summary refs log tree commit diff
path: root/wctype
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-02-16 17:10:53 +0000
committerUlrich Drepper <drepper@redhat.com>1999-02-16 17:10:53 +0000
commitff8273391ca55015db204b89c05721cdffd526d0 (patch)
tree069a24ca654e0863ba86d8bc1b5073bd5cf9b9e5 /wctype
parent3f80a33b99e9b86ce7cbae9530df81367c884568 (diff)
downloadglibc-ff8273391ca55015db204b89c05721cdffd526d0.tar.gz
glibc-ff8273391ca55015db204b89c05721cdffd526d0.tar.xz
glibc-ff8273391ca55015db204b89c05721cdffd526d0.zip
Update.
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''.
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