]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Undo last change.
authorUlrich Drepper <drepper@redhat.com>
Mon, 2 Mar 1998 13:42:13 +0000 (13:42 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 2 Mar 1998 13:42:13 +0000 (13:42 +0000)
wctype/wctype.c

index 2116a6350507b2b60db26c1298523738d80ffbb9..81cf8f35cfd1261fd29d93c2ada1381c184bfbad 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
 This file is part of the GNU C Library.
 Contributed by Ulrich Drepper, <drepper@gnu.ai.mit.edu>.
 
@@ -42,9 +42,9 @@ wctype (const char *property)
 #if __BYTE_ORDER == __BIG_ENDIAN
   return result;
 #else
-#define XSWAPU32(w) \
-  ((((w) & 0xff00ff00) >> 8) | (((w) & 0xff00ff) << 8))
+# define SWAPU32(w) \
+  (((w) << 24) | (((w) & 0xff00) << 8) | (((w) >> 8) & 0xff00) | ((w) >> 24))
 
-  return XSWAPU32 (result);
+  return SWAPU32 (result);
 #endif
 }