xdiff: avoid compiler warnings with XDL_FAST_HASH on 32-bit machines
commit9322ce21eeb4ad92d0cdd37d0d62a69368042fec
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Tue, 22 May 2012 20:36:25 +0000 (22 22:36 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 22 May 2012 21:39:49 +0000 (22 14:39 -0700)
tree7ef2ad2a7110619b33fe850c85170ad5cdc0fc1e
parent6f1af028ce0654ef6233dff06701a989d5703bc4
xdiff: avoid compiler warnings with XDL_FAST_HASH on 32-bit machines

Import macro REPEAT_BYTE from Linux (arch/x86/include/asm/word-at-a-time.h)
to avoid 64-bit integer literals, which cause some 32-bit compilers to
print warnings.

Reported-by: Øyvind A. Holm <sunny@sunbase.org>
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
xdiff/xutils.c