summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2015-10-26 13:15:21 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-10-26 20:23:59 (GMT)
commit8f7744235844c44e780e026868beef29693c062e (patch)
tree6bbb2767ec8387ceb3405c6ce54495a8be7573b6 /git-compat-util.h
parent441c4a40173fe1ee8a5c0094e587dfc47e2a6460 (diff)
downloadgit-8f7744235844c44e780e026868beef29693c062e.zip
git-8f7744235844c44e780e026868beef29693c062e.tar.gz
git-8f7744235844c44e780e026868beef29693c062e.tar.bz2
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>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index 400e921..6a16e20 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