]> granicus.if.org Git - php/commitdiff
Use unsigned shift to clear the bit.
authorDmitry Stogov <dmitry@zend.com>
Fri, 29 Apr 2016 09:38:48 +0000 (12:38 +0300)
committerDmitry Stogov <dmitry@zend.com>
Fri, 29 Apr 2016 09:38:48 +0000 (12:38 +0300)
Zend/zend_alloc.c

index 18765593174f613f3ba29b1edab4301be449b31f..e7a8e0d2a5121476d2e8b73f2659db96cbbc33fd 100644 (file)
@@ -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