Skip to content

Commit 4c81eef

Browse files
committed
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]>
1 parent 0f50fd7 commit 4c81eef

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
@@ -517,7 +517,7 @@ extern int git_lstat(const char *, struct stat *);
517517
#endif
518518

519519
#define DEFAULT_PACKED_GIT_LIMIT \
520-
((1024L * 1024L) * (sizeof(void*) >= 8 ? 8192 : 256))
520+
((1024L * 1024L) * (size_t)(sizeof(void*) >= 8 ? 8192 : 256))
521521

522522
#ifdef NO_PREAD
523523
#define pread git_pread

0 commit comments

Comments
 (0)