Skip to content

Commit 8f77442

Browse files
dschogitster
authored andcommitted
Squelch warning about an integer overflow
We cannot rely on long integers to have more than 32 bits. Signed-off-by: Johannes Schindelin <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 441c4a4 commit 8f77442

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-compat-util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ extern int git_munmap(void *start, size_t length);
475475
#endif
476476

477477
#define DEFAULT_PACKED_GIT_LIMIT \
478-
((1024L * 1024L) * (sizeof(void*) >= 8 ? 8192 : 256))
478+
((1024L * 1024L) * (size_t)(sizeof(void*) >= 8 ? 8192 : 256))
479479

480480
#ifdef NO_PREAD
481481
#define pread git_pread

0 commit comments

Comments
 (0)