mirror of https://github.com/vishvananda/netlink
Merge pull request #41 from brahmaroutu/big_endian_error
fixing issue with setting big endian
This commit is contained in:
commit
ea0402b9db
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue