From 4f4ba4c02f6e670d679b2ffba2645d709ddf4dd9 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 12 Apr 2011 12:18:11 -0400 Subject: [PATCH] fix broken bswap_32 --- src/misc/bswap_32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.25.1