summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2011-09-28 17:27:45 -0400
committerJeremy Huddleston <jeremyhu@apple.com>2011-10-03 10:23:54 -0700
commit6eae9fa28445b6cfa09061b338242df5116aafe8 (patch)
tree4c323d2e38e96b6473e11ae8fb2458ce06f441b2 /include
parent38e9e28ba2fbffee52ad9889ef6d4e94c7af3e10 (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/misc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/misc.h b/include/misc.h
index 0867746d2..dc039113d 100644
--- a/include/misc.h
+++ b/include/misc.h
@@ -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];