diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-09-04 12:36:44 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-09-04 12:36:44 -0700 |
commit | 7216b1fb5c8c702a2ce3ca84febce570480e50f6 (patch) | |
tree | c20eaafe1a1733a5783329e8d1158e0619e01639 | |
parent | Merge branch 'fc/unpack-trees-leakfix' (diff) | |
parent | create_delta_index: simplify condition always evaluating to true (diff) | |
download | tgif-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.c | 2 |
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; |