about summary refs log tree commit diff
path: root/src/misc/bswap_32.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc/bswap_32.c')
-rw-r--r--src/misc/bswap_32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc/bswap_32.c b/src/misc/bswap_32.c
index a2418ca9..f26d411f 100644
--- a/src/misc/bswap_32.c
+++ b/src/misc/bswap_32.c
@@ -3,5 +3,5 @@
 
 uint32_t bswap_32(uint32_t x)
 {
-	return x>>24 | x>>16&0xff00 | x<<16&0xff0000 | x<<24;
+	return x>>24 | x>>8&0xff00 | x<<8&0xff0000 | x<<24;
 }