summaryrefslogtreecommitdiff
path: root/xdiff
diff options
context:
space:
mode:
authorLibravatar Pierre Habouzit <madcoder@debian.org>2009-07-22 23:34:34 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-07-22 21:57:41 -0700
commitf630cfda8800aee03c7eb2fcd0f840730fbe43b9 (patch)
treef780eac20525e629c704a31a8d6e629cae6ea011 /xdiff
parentjanitor: use NULL and not 0 for pointers. (diff)
downloadtgif-f630cfda8800aee03c7eb2fcd0f840730fbe43b9.tar.xz
refactor: use bitsizeof() instead of 8 * sizeof()
Signed-off-by: Pierre Habouzit <madcoder@debian.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'xdiff')
-rw-r--r--xdiff/xdiffi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xdiff/xdiffi.c b/xdiff/xdiffi.c
index 1ebab687f7..da67c04357 100644
--- a/xdiff/xdiffi.c
+++ b/xdiff/xdiffi.c
@@ -26,7 +26,7 @@
#define XDL_MAX_COST_MIN 256
#define XDL_HEUR_MIN_COST 256
-#define XDL_LINE_MAX (long)((1UL << (8 * sizeof(long) - 1)) - 1)
+#define XDL_LINE_MAX (long)((1UL << (CHAR_BIT * sizeof(long) - 1)) - 1)
#define XDL_SNAKE_CNT 20
#define XDL_K_HEUR 4