summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2013-09-04 12:36:44 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-09-04 12:36:44 -0700
commit7216b1fb5c8c702a2ce3ca84febce570480e50f6 (patch)
treec20eaafe1a1733a5783329e8d1158e0619e01639
parentMerge branch 'fc/unpack-trees-leakfix' (diff)
parentcreate_delta_index: simplify condition always evaluating to true (diff)
downloadtgif-7216b1fb5c8c702a2ce3ca84febce570480e50f6.tar.xz
Merge branch 'sb/diff-delta-remove-needless-comparison'
* sb/diff-delta-remove-needless-comparison: create_delta_index: simplify condition always evaluating to true
-rw-r--r--diff-delta.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/diff-delta.c b/diff-delta.c
index 93385e12ba..3797ce6041 100644
--- a/diff-delta.c
+++ b/diff-delta.c
@@ -155,7 +155,7 @@ struct delta_index * create_delta_index(const void *buf, unsigned long bufsize)
entries = 0xfffffffeU / RABIN_WINDOW;
}
hsize = entries / 4;
- for (i = 4; (1u << i) < hsize && i < 31; i++);
+ for (i = 4; (1u << i) < hsize; i++);
hsize = 1 << i;
hmask = hsize - 1;