* gettextP.h (SWAP): Change parameter type to unsigned int.
From-SVN: r43824
This commit is contained in:
parent
8fa2140d42
commit
9fecb07186
@ -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>
|
2001-05-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
|
||||||
|
|
||||||
* po2tbl.sed.in: Fixed typo.
|
* po2tbl.sed.in: Fixed typo.
|
||||||
|
@ -44,13 +44,14 @@
|
|||||||
# include <byteswap.h>
|
# include <byteswap.h>
|
||||||
# define SWAP(i) bswap_32 (i)
|
# define SWAP(i) bswap_32 (i)
|
||||||
#else
|
#else
|
||||||
static nls_uint32 SWAP PARAMS ((nls_uint32 i));
|
static nls_uint32 SWAP PARAMS ((unsigned int i));
|
||||||
|
|
||||||
static inline nls_uint32
|
static inline nls_uint32
|
||||||
SWAP (i)
|
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
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user