Fixed this to return the correct conversion. I hope...
This commit is contained in:
parent
44f23e40fd
commit
3a1b847c51
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user