make sure to check against host-byte-order
Merge pull request #37 from egwynn/master

make sure to check against host-byte-order