fix broken bswap_32

This commit is contained in:
Rich Felker 2011-04-12 12:18:11 -04:00
parent 0729fd9fd9
commit 4f4ba4c02f
1 changed files with 1 additions and 1 deletions

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