Commit
9e2c88b5 added an extra return (with an unconditional byteswap)
in cpu_to_be64. This breaks on big-endian, where we shouldn't be
byteswapping.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
*/
static inline beint64_t cpu_to_be64(uint64_t native)
{
*/
static inline beint64_t cpu_to_be64(uint64_t native)
{
- return ((ENDIAN_CAST beint64_t)BSWAP_64(native));
return CPU_TO_BE64(native);
}
return CPU_TO_BE64(native);
}