* gettextP.h (SWAP): Change parameter type to unsigned int.

From-SVN: r53879
This commit is contained in:
Roman Lechtchinsky 2002-05-26 01:43:14 +00:00 committed by Richard Henderson
parent 3eeb186d9b
commit 5cbd46fe6e
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2002-05-25 Roman Lechtchinsky <rl@cs.tu-berlin.de>
* gettextP.h (SWAP): Change parameter type to unsigned int.
2002-05-14 Release Manager
* GCC 3.1 Released.

View File

@ -63,12 +63,14 @@
# include <byteswap.h>
# define SWAP(i) bswap_32 (i)
#else
/* GCC LOCAL: Prototype first to avoid warnings. */
static inline nls_uint32 SWAP PARAMS ((nls_uint32));
/* GCC LOCAL: Prototype first to avoid warnings; change argument to
unsigned int to avoid K&R type promotion errors with 64-bit "int". */
static inline nls_uint32 SWAP PARAMS ((unsigned int));
static inline nls_uint32
SWAP (i)
nls_uint32 i;
unsigned int ii;
{
nls_uint32 i = ii;
return (i << 24) | ((i & 0xff00) << 8) | ((i >> 8) & 0xff00) | (i >> 24);
}
#endif