]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - wctype/wctype.c
Update.
[thirdparty/glibc.git] / wctype / wctype.c
index 07cb518ad309d52efaf844b9269ae4a27013475c..81b9ac9b4375973b337535b61f316cef7543ccf2 100644 (file)
@@ -45,9 +45,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
 }