diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2015-10-26 14:15:21 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-10-26 13:23:59 -0700 |
commit | 8f7744235844c44e780e026868beef29693c062e (patch) | |
tree | 6bbb2767ec8387ceb3405c6ce54495a8be7573b6 | |
parent | 441c4a40173fe1ee8a5c0094e587dfc47e2a6460 (diff) | |
download | git-8f7744235844c44e780e026868beef29693c062e.tar.gz |
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>
-rw-r--r-- | git-compat-util.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |