mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-13 12:19:24 +00:00
Merge pull request #1993 from jaredlwong/development
Fixed left shift size of int.
This commit is contained in:
commit
65e726a8ec
@ -144,7 +144,7 @@ git_delta_create_index(const void *buf, unsigned long bufsize)
|
|||||||
entries = 0xfffffffeU / RABIN_WINDOW;
|
entries = 0xfffffffeU / RABIN_WINDOW;
|
||||||
}
|
}
|
||||||
hsize = entries / 4;
|
hsize = entries / 4;
|
||||||
for (i = 4; (1u << i) < hsize && i < 31; i++);
|
for (i = 4; i < 31 && (1u << i) < hsize; i++);
|
||||||
hsize = 1 << i;
|
hsize = 1 << i;
|
||||||
hmask = hsize - 1;
|
hmask = hsize - 1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user