Merge branch 'sb/diff-delta-remove-needless-comparison'
* sb/diff-delta-remove-needless-comparison: create_delta_index: simplify condition always evaluating to true
This commit is contained in:
commit
7216b1fb5c
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user