mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
Fix an integral overflow on 64-bit
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
: 32 * 1024 * 1024)
|
||||
|
||||
#define DEFAULT_MAPPED_LIMIT \
|
||||
((1024L * 1024L) * (sizeof(void*) >= 8 ? 8192 : 256))
|
||||
((1024 * 1024) * (sizeof(void*) >= 8 ? 8192ULL : 256UL))
|
||||
|
||||
/*
|
||||
* We need this because each process is only allowed a specific amount
|
||||
|
||||
Reference in New Issue
Block a user