Fixed this to return the correct conversion. I hope...

This commit is contained in:
Myrddin Dundragon 2017-07-01 20:18:00 -04:00
parent 44f23e40fd
commit 3a1b847c51

View File

@ -413,7 +413,7 @@ pub fn network_to_platform_order<T>(val: T) -> T
} }
else else
{ {
T::from_endian_bytes(val.as_bytes().as_slice(), Endianess::Platform) T::from_endian_bytes(val.as_bytes().as_slice(), Endianess::Network)
} }
} }
@ -430,7 +430,7 @@ pub fn platform_to_network_order<T>(val: T) -> T
} }
else else
{ {
T::from_endian_bytes(val.as_bytes().as_slice(), Endianess::Platform) T::from_endian_bytes(val.as_bytes().as_slice(), Endianess::Network)
} }
} }