fix broken bswap_32
authorRich Felker <dalias@aerifal.cx>
Tue, 12 Apr 2011 16:18:11 +0000 (12:18 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 12 Apr 2011 16:18:11 +0000 (12:18 -0400)
src/misc/bswap_32.c

index a2418ca9ca6873bac452eff8b3d9675fcb823bba..f26d411fe145dcc57c266bcd6b2f50b4e060efeb 100644 (file)
@@ -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;
 }