diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-08-11 19:36:17 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-08-11 19:36:17 (GMT) |
commit | 7cfaa86fe6f61698752d13c59ac97a102d1fbaae (patch) | |
tree | ce8fbddbbabcf6da2dc90e7259b46978302ad0ef /object-file.c | |
parent | 2d755dfac9aadab25c3e025b849252b8c0a61465 (diff) | |
parent | 581a3bb155c157094ca486e3a10c4a9b70c8f650 (diff) | |
download | git-7cfaa86fe6f61698752d13c59ac97a102d1fbaae.zip git-7cfaa86fe6f61698752d13c59ac97a102d1fbaae.tar.gz git-7cfaa86fe6f61698752d13c59ac97a102d1fbaae.tar.bz2 |
Merge branch 'cb/many-alternate-optim-fixup'
Build fix.
* cb/many-alternate-optim-fixup:
object-file: use unsigned arithmetic with bit mask
object-store: avoid extra ';' from KHASH_INIT
oidtree: avoid nested struct oidtree_node
Diffstat (limited to 'object-file.c')
-rw-r--r-- | object-file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/object-file.c b/object-file.c index 3d27dc8..a8be899 100644 --- a/object-file.c +++ b/object-file.c @@ -2474,7 +2474,7 @@ struct oidtree *odb_loose_cache(struct object_directory *odb, struct strbuf buf = STRBUF_INIT; size_t word_bits = bitsizeof(odb->loose_objects_subdir_seen[0]); size_t word_index = subdir_nr / word_bits; - size_t mask = 1 << (subdir_nr % word_bits); + size_t mask = 1u << (subdir_nr % word_bits); uint32_t *bitmap; if (subdir_nr < 0 || |