about summary refs log tree commit diff
path: root/wctype
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-07-12 21:10:41 +0000
committerUlrich Drepper <drepper@redhat.com>2000-07-12 21:10:41 +0000
commit8ca91b369d1f8baebc55730c5dfb35a5919b5d0f (patch)
tree200829155c0580923f19abca79a7fbdc35051f30 /wctype
parent0d655550deaaf5813c0b198bbc581164e80230d8 (diff)
downloadglibc-8ca91b369d1f8baebc55730c5dfb35a5919b5d0f.tar.gz
glibc-8ca91b369d1f8baebc55730c5dfb35a5919b5d0f.tar.xz
glibc-8ca91b369d1f8baebc55730c5dfb35a5919b5d0f.zip
Update.
2000-07-12  Andreas Jaeger  <aj@suse.de>

	* elf/Makefile (SYSCONF-FLAGS): Added to pass sysconfdir to
	compiler.
	(CFLAGS-cache.c): Added, uses SYSCONF-FLAGS.
	(CFLAGS-dl-cache.c): Likewise.
	(CFLAGS-ldconfig.c): Added, passes directory locations.

	* sysdeps/generic/dl-cache.h (LD_SO_CACHE): Use SYSCONFDIR to
	locate cache.
	* elf/ldconfig.c (LD_SO_CONF): Likewise.
	(main): Use configured LIBDIR and SLIBDIR.

2000-07-11  Jakub Jelinek  <jakub@redhat.com>

	* math/bits/cmathcalls.h (cimag): Add __THROW.
	(creal, conj): Likewise.
	* wctype/wctype.h (_ISwbit): Avoid warnings about shifting left
	by negative value.
Diffstat (limited to 'wctype')
-rw-r--r--wctype/wctype.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/wctype/wctype.h b/wctype/wctype.h
index 8bcbaf987b..2812bd8286 100644
--- a/wctype/wctype.h
+++ b/wctype/wctype.h
@@ -70,10 +70,10 @@ typedef unsigned long int wctype_t;
 #   define _ISwbit(bit)	(1 << (bit))
 #  else /* __BYTE_ORDER == __LITTLE_ENDIAN */
 #   define _ISwbit(bit)	\
-	((bit) < 8 ? (int) (1UL << ((bit) + 24))			      \
-	 : ((bit) < 16 ? (int) (1UL << ((bit) + 8))			      \
-	    : ((bit) < 24 ? (int) (1UL << ((bit) - 8 ))			      \
-	       : (int) (1UL << ((bit) - 24 )))))
+	((bit) < 8 ? (int) ((1UL << (bit)) << 24)			      \
+	 : ((bit) < 16 ? (int) ((1UL << (bit)) << 8)			      \
+	    : ((bit) < 24 ? (int) ((1UL << (bit)) >> 8)			      \
+	       : (int) ((1UL << (bit)) >> 24))))
 #  endif
 
 enum