summaryrefslogtreecommitdiff
path: root/memory_limit.c
diff options
context:
space:
mode:
authorStefan Esser2014-02-11 14:05:28 +0100
committerStefan Esser2014-02-11 14:05:28 +0100
commit35b44afa2cd8bfc2a5ab66d08273e87a2da2d194 (patch)
tree03428c62a2f8446185820f12d5635a0b890177ac /memory_limit.c
parent22281ed0f243e3aa41fa0d30aafb1dbc3417d6ee (diff)
Fix this to make the compiler happy
Diffstat (limited to 'memory_limit.c')
-rw-r--r--memory_limit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/memory_limit.c b/memory_limit.c
index 5dc20ce..6a6b975 100644
--- a/memory_limit.c
+++ b/memory_limit.c
@@ -35,9 +35,9 @@
35static PHP_INI_MH(suhosin_OnChangeMemoryLimit) 35static PHP_INI_MH(suhosin_OnChangeMemoryLimit)
36{ 36{
37#if SIZEOF_LONG==8 37#if SIZEOF_LONG==8
38 long hard_memory_limit = 1<<63; 38 long hard_memory_limit = 0x7fffffffffffffff;
39#elif SIZEOF_LONG==4 39#elif SIZEOF_LONG==4
40 long hard_memory_limit = 1<<31; 40 long hard_memory_limit = 0x7fffffff;
41#endif /* will produce a compile error or SIZEOF_LONG is not 4 or 8 */ 41#endif /* will produce a compile error or SIZEOF_LONG is not 4 or 8 */
42 if (stage == ZEND_INI_STAGE_RUNTIME) { 42 if (stage == ZEND_INI_STAGE_RUNTIME) {
43 if (SUHOSIN_G(memory_limit) > 0) { 43 if (SUHOSIN_G(memory_limit) > 0) {