fix for big endian platform
Merge pull request #19 from chenbin1985/master

fix for big endian platform