diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-06 21:32:49 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-06 21:32:49 +0000 |
commit | b1c4a146330b63ff2d2ad465bd84fa8b592e5805 (patch) | |
tree | d30d1854c5f1390d4d9a24b27b64f525cdf85efb /gcc/intl | |
parent | 8e6c5eac481d419fda6e4705add148e76c8a9ee5 (diff) | |
download | gcc-b1c4a146330b63ff2d2ad465bd84fa8b592e5805.tar.gz |
* gettextP.h (SWAP): Change parameter type to unsigned int.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43824 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/intl')
-rw-r--r-- | gcc/intl/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/intl/gettextP.h | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/intl/ChangeLog b/gcc/intl/ChangeLog index a3c86fb7368..f87452ee916 100644 --- a/gcc/intl/ChangeLog +++ b/gcc/intl/ChangeLog @@ -1,3 +1,7 @@ +2001-07-06 Roman Lechtchinsky <rl@cs.tu-berlin.de> + + * gettextP.h (SWAP): Change parameter type to unsigned int. + 2001-05-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> * po2tbl.sed.in: Fixed typo. diff --git a/gcc/intl/gettextP.h b/gcc/intl/gettextP.h index 00c52031972..1b69b28cd6d 100644 --- a/gcc/intl/gettextP.h +++ b/gcc/intl/gettextP.h @@ -44,13 +44,14 @@ # include <byteswap.h> # define SWAP(i) bswap_32 (i) #else -static nls_uint32 SWAP PARAMS ((nls_uint32 i)); +static nls_uint32 SWAP PARAMS ((unsigned int i)); static inline nls_uint32 SWAP (i) - nls_uint32 i; + unsigned int i; { - return (i << 24) | ((i & 0xff00) << 8) | ((i >> 8) & 0xff00) | (i >> 24); + nls_uint32 x = (nls_uint32) i; + return (x << 24) | ((x & 0xff00) << 8) | ((x >> 8) & 0xff00) | (x >> 24); } #endif |