diff options
author | Ulrich Drepper <drepper@redhat.com> | 1997-12-09 23:59:57 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1997-12-09 23:59:57 +0000 |
commit | c5ff2318d8fbfb682a53ed3c001da29e44f03791 (patch) | |
tree | 465ee22377c7628b5fb65aad2cc8d99f19bafc73 /wctype | |
parent | d963ca0bce4621185c3576874b11c86727757080 (diff) |
Return value with expected byte order.
Diffstat (limited to 'wctype')
-rw-r--r-- | wctype/wctype.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/wctype/wctype.c b/wctype/wctype.c index c3bb1d9c6a..2116a63505 100644 --- a/wctype/wctype.c +++ b/wctype/wctype.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1996 Free Software Foundation, Inc. +/* Copyright (C) 1996, 1997 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 SWAPU32(w) \ - (((w) << 24) | (((w) & 0xff00) << 8) | (((w) >> 8) & 0xff00) | ((w) >> 24)) +#define XSWAPU32(w) \ + ((((w) & 0xff00ff00) >> 8) | (((w) & 0xff00ff) << 8)) - return SWAPU32 (result); + return XSWAPU32 (result); #endif } |