From: Nuno Lopes Date: Sun, 8 Jul 2012 19:19:41 +0000 (-0400) Subject: appease MSVC (doesnt like unary minus of unsigned ints) X-Git-Tag: php-5.5.0alpha1~91^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e6d9cd983b3503d38389d0c67267c773a98af174;p=php appease MSVC (doesnt like unary minus of unsigned ints) --- diff --git a/Zend/zend_hash.h b/Zend/zend_hash.h index 5c3b1cde34..1bd64394ac 100644 --- a/Zend/zend_hash.h +++ b/Zend/zend_hash.h @@ -330,7 +330,7 @@ END_EXTERN_C() if (idx-1 > LONG_MAX) { /* overflow */ \ break; \ } \ - idx = -idx; \ + idx = 0 - idx; \ } else if (idx > LONG_MAX) { /* overflow */ \ break; \ } \