Commit ad44b392 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix type-punning bug

parent a0639251
......@@ -43,7 +43,7 @@
#else
# define swable32(x)\
((((uint16_t*)&x)[0] << 16) | (((uint16_t*)&x)[1]))
((((uint32_t)x) >> 16) | (((uint32_t)x) << 16))
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment