From 8f7744235844c44e780e026868beef29693c062e Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Mon, 26 Oct 2015 14:15:21 +0100 Subject: [PATCH] Squelch warning about an integer overflow We cannot rely on long integers to have more than 32 bits. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- git-compat-util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-compat-util.h b/git-compat-util.h index 400e921086..6a16e20966 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -475,7 +475,7 @@ extern int git_munmap(void *start, size_t length); #endif #define DEFAULT_PACKED_GIT_LIMIT \ - ((1024L * 1024L) * (sizeof(void*) >= 8 ? 8192 : 256)) + ((1024L * 1024L) * (size_t)(sizeof(void*) >= 8 ? 8192 : 256)) #ifdef NO_PREAD #define pread git_pread -- 2.11.4.GIT