diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-10-30 13:06:59 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-10-30 13:07:00 -0700 |
commit | 808d11926351018f73db69d54e5920adef578f62 (patch) | |
tree | 92c508142f25974235410353ce5c6f45c8d75207 /git-compat-util.h | |
parent | e88e424f4c9d9c8b622cc6a2ebe6e1fa058676f5 (diff) | |
parent | fdcdb778551b904d57c127d9a3546f6a7c8792d3 (diff) | |
download | git-808d11926351018f73db69d54e5920adef578f62.tar.gz |
Merge branch 'js/misc-fixes'
Various compilation fixes and squelching of warnings.
* js/misc-fixes:
Correct fscanf formatting string for I64u values
Silence GCC's "cast of pointer to integer of a different size" warning
Squelch warning about an integer overflow
Diffstat (limited to 'git-compat-util.h')
-rw-r--r-- | git-compat-util.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/git-compat-util.h b/git-compat-util.h index 88964f7886..8e3986791d 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -296,6 +296,10 @@ extern char *gitbasename(char *); #define PRIuMAX "llu" #endif +#ifndef SCNuMAX +#define SCNuMAX PRIuMAX +#endif + #ifndef PRIu32 #define PRIu32 "u" #endif @@ -568,7 +572,7 @@ extern int git_lstat(const char *, struct stat *); #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 |