Merge pull request #41 from brahmaroutu/big_endian_error

fixing issue with setting big endian
This commit is contained in:
Vish Ishaya 2015-07-15 20:07:42 -07:00
commit ea0402b9db
1 changed files with 2 additions and 1 deletions

View File

@ -39,8 +39,9 @@ func NativeEndian() binary.ByteOrder {
var x uint32 = 0x01020304
if *(*byte)(unsafe.Pointer(&x)) == 0x01 {
nativeEndian = binary.BigEndian
} else {
nativeEndian = binary.LittleEndian
}
nativeEndian = binary.LittleEndian
}
return nativeEndian
}