From a8d464909738114ed2daadb2b106ad96773d5b8f Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Fri, 29 Apr 2016 12:38:48 +0300 Subject: [PATCH] Use unsigned shift to clear the bit. --- Zend/zend_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index 1876559317..e7a8e0d2a5 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -1862,7 +1862,7 @@ static zend_mm_heap *zend_mm_init(void) heap->peak = 0; #endif #if ZEND_MM_LIMIT - heap->limit = (Z_L(-1) >> Z_L(1)); + heap->limit = ((size_t)Z_L(-1) >> (size_t)Z_L(1)); heap->overflow = 0; #endif #if ZEND_MM_CUSTOM -- 2.40.0