Fix an integral overflow on 64-bit

This commit is contained in:
Sebastian Schuberth 2011-09-08 16:43:58 +02:00
parent 1c3fac4d5e
commit 18136d8306

View File

@ -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