From: Benjamin Kramer Date: Wed, 18 Nov 2009 13:53:27 +0000 (+0100) Subject: Explicitly truncate bswap operand to uint32_t X-Git-Tag: v1.6.6-rc1~29 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/b073b7a990deb1cb3425db45642fa18c8b3cb65c?ds=inline;hp=b073b7a990deb1cb3425db45642fa18c8b3cb65c Explicitly truncate bswap operand to uint32_t There are some places in git where a long is passed to htonl/ntohl. llvm doesn't support matching operands of different bitwidths intentionally. This patch fixes the build with llvm-gcc (and clang) on x86_64. Signed-off-by: Benjamin Kramer Signed-off-by: Junio C Hamano ---