]> git.ozlabs.org Git - ccan/commit
endian: Fix cpu_to_be64 on big-endian
authorJeremy Kerr <jk@ozlabs.org>
Mon, 18 Aug 2014 10:45:39 +0000 (18:45 +0800)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 30 Mar 2015 06:46:32 +0000 (17:16 +1030)
commit9eb1109954a99791ae6a930a4b7120b1c55ee1a7
tree1b46a1c40c73887ea642fb1a5b1d454634e45672
parent495f0115718b6d64b2ed597713d11aaed9da5fe9
endian: Fix cpu_to_be64 on big-endian

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>
ccan/endian/endian.h