Skip to content

Commit fd9a87b

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 314f846 commit fd9a87b

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

571571
#define DEFAULT_PACKED_GIT_LIMIT \
572-
((1024L * 1024L) * (sizeof(void*) >= 8 ? 8192 : 256))
572+
((1024L * 1024L) * (size_t)(sizeof(void*) >= 8 ? 8192 : 256))
573573

574574
#ifdef NO_PREAD
575575
#define pread git_pread

0 commit comments

Comments
 (0)