Skip to content

Commit 02b3558

Browse files
committed
Merge branch 'cb/many-alternate-optim-fixup' into next
Build fix. * cb/many-alternate-optim-fixup: object-file: use unsigned arithmetic with bit mask
2 parents 1f62d2e + 581a3bb commit 02b3558

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

object-file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2406,7 +2406,7 @@ struct oidtree *odb_loose_cache(struct object_directory *odb,
24062406
struct strbuf buf = STRBUF_INIT;
24072407
size_t word_bits = bitsizeof(odb->loose_objects_subdir_seen[0]);
24082408
size_t word_index = subdir_nr / word_bits;
2409-
size_t mask = 1 << (subdir_nr % word_bits);
2409+
size_t mask = 1u << (subdir_nr % word_bits);
24102410
uint32_t *bitmap;
24112411

24122412
if (subdir_nr < 0 ||

0 commit comments

Comments
 (0)