about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-04-12 12:18:11 -0400
committerRich Felker <dalias@aerifal.cx>2011-04-12 12:18:11 -0400
commit4f4ba4c02f6e670d679b2ffba2645d709ddf4dd9 (patch)
tree865ba0f9f8894ace6673834f30db993c325106b9
parent0729fd9fd94bf39c49741b61641c68411ccc2cbe (diff)
downloadmusl-4f4ba4c02f6e670d679b2ffba2645d709ddf4dd9.tar.gz
musl-4f4ba4c02f6e670d679b2ffba2645d709ddf4dd9.tar.xz
musl-4f4ba4c02f6e670d679b2ffba2645d709ddf4dd9.zip
fix broken bswap_32
-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;
 }