Remove incorrect & in swap_uint32
Caused by commit 893e86a4
, and hidden by the (char *) cast.
Signed-off-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
Tested-by: Aaron Plattner <aplattner@nvidia.com>
This commit is contained in:
parent
38e9e28ba2
commit
6eae9fa284
|
@ -279,7 +279,7 @@ static inline int __builtin_constant_p(int x)
|
|||
/* byte swap a 32-bit value */
|
||||
static inline void swap_uint32(uint32_t *x)
|
||||
{
|
||||
char n = ((char *) &x)[0];
|
||||
char n = ((char *) x)[0];
|
||||
((char *) x)[0] = ((char *) x)[3];
|
||||
((char *) x)[3] = n;
|
||||
n = ((char *) x)[1];
|
||||
|
|
Loading…
Reference in New Issue
Block a user