Skip to content

Commit c7bed78

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 1e0a654 commit c7bed78

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

570570
#define DEFAULT_PACKED_GIT_LIMIT \
571-
((1024L * 1024L) * (sizeof(void*) >= 8 ? 8192 : 256))
571+
((1024L * 1024L) * (size_t)(sizeof(void*) >= 8 ? 8192 : 256))
572572

573573
#ifdef NO_PREAD
574574
#define pread git_pread

0 commit comments

Comments
 (0)