fix broken bswap_32

This commit is contained in:
Rich Felker 2011-04-12 12:18:11 -04:00
parent 0729fd9fd9
commit 4f4ba4c02f

View 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;
}