com php-src: Use unsigned shift to clear the bit.: Zend/zend_ alloc.c

From: Date: Fri, 29 Apr 2016 09:38:48 +0000
Subject: com php-src: Use unsigned shift to clear the bit.: Zend/zend_ alloc.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-91945@lists.php.net to get a copy of this message
Commit: a8d464909738114ed2daadb2b106ad96773d5b8f Author: Dmitry Stogov <dmitry@zend.com> Fri, 29 Apr 2016 12:38:48 +0300 Parents: 37f7c71f3e23d735cd3b75a0e2e05b6de95d3ad5 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a8d464909738114ed2daadb2b106ad96773d5b8f Log: Use unsigned shift to clear the bit. Changed paths: M Zend/zend_alloc.c Diff: diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index 1876559..e7a8e0d 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

« previous php.cvs (#91945) next »