Squelch warning about an integer overflow
We cannot rely on long integers to have more than 32 bits. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Johannes Schindelin committed
Oct 26, 2015 at 14:15 UTC
8f7744235844c44e780e026868beef29693c062e
1 file changed
+1
-1
git-compat-util.h
+1
-1
@@ -475,7 +475,7 @@ extern int git_munmap(void *start, size_t length);
475
#endif
476
477
#define DEFAULT_PACKED_GIT_LIMIT \
478
- ((1024L * 1024L) * (sizeof(void*) >= 8 ? 8192 : 256))
478
+ ((1024L * 1024L) * (size_t)(sizeof(void*) >= 8 ? 8192 : 256))
479
480
#ifdef NO_PREAD
481
#define pread git_pread