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>
This commit is contained in:
parent
441c4a4017
commit
8f77442358
@ -475,7 +475,7 @@ extern int git_munmap(void *start, size_t length);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define DEFAULT_PACKED_GIT_LIMIT \
|
#define DEFAULT_PACKED_GIT_LIMIT \
|
||||||
((1024L * 1024L) * (sizeof(void*) >= 8 ? 8192 : 256))
|
((1024L * 1024L) * (size_t)(sizeof(void*) >= 8 ? 8192 : 256))
|
||||||
|
|
||||||
#ifdef NO_PREAD
|
#ifdef NO_PREAD
|
||||||
#define pread git_pread
|
#define pread git_pread
|
||||||
|
Loading…
Reference in New Issue
Block a user