From: Dmitry Stogov Date: Fri, 29 Apr 2016 09:38:48 +0000 (+0300) Subject: Use unsigned shift to clear the bit. X-Git-Tag: php-7.1.0alpha1~237^2~6^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a8d464909738114ed2daadb2b106ad96773d5b8f;p=php Use unsigned shift to clear the bit. --- 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