Skip to content

Commit 081ea0f

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 d7255ab commit 081ea0f

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

516516
#define DEFAULT_PACKED_GIT_LIMIT \
517-
((1024L * 1024L) * (sizeof(void*) >= 8 ? 8192 : 256))
517+
((1024L * 1024L) * (size_t)(sizeof(void*) >= 8 ? 8192 : 256))
518518

519519
#ifdef NO_PREAD
520520
#define pread git_pread

0 commit comments

Comments
 (0)