object-file.c: LLP64 compatibility, upcast unity for left shift

Visual Studio reports C4334 "was 64-bit shift intended" warning because of size miss-match. Promote unity to the matching type to fit with the assignment. Signed-off-by: Philip Oakley <philipoakley@iee.email> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Philip Oakley committed Dec 1, 2021 at 00:29 UTC 26de1fc0c99026f341b8011957562991e4ea6c51
1 file changed +1 -1
object-file.c
+1 -1
@@ -2425,7 +2425,7 @@ struct oidtree *odb_loose_cache(struct object_directory *odb,
2425 struct strbuf buf = STRBUF_INIT;
2426 size_t word_bits = bitsizeof(odb->loose_objects_subdir_seen[0]);
2427 size_t word_index = subdir_nr / word_bits;
2428 - size_t mask = 1u << (subdir_nr % word_bits);
2428 + size_t mask = (size_t)1u << (subdir_nr % word_bits);
2429 uint32_t *bitmap;
2430
2431 if (subdir_nr < 0 ||