Skip to content

Commit

Permalink
Merge branch 'sb/diff-delta-remove-needless-comparison'
Browse files Browse the repository at this point in the history
* sb/diff-delta-remove-needless-comparison:
  create_delta_index: simplify condition always evaluating to true
  • Loading branch information
Junio C Hamano committed Sep 4, 2013
2 parents 94f0069 + f7466e9 commit 7216b1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diff-delta.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 7216b1f

Please sign in to comment.