]> granicus.if.org Git - php/commitdiff
appease MSVC (doesnt like unary minus of unsigned ints)
authorNuno Lopes <nlopess@php.net>
Sun, 8 Jul 2012 19:19:41 +0000 (15:19 -0400)
committerNuno Lopes <nlopess@php.net>
Sun, 8 Jul 2012 19:19:41 +0000 (15:19 -0400)
Zend/zend_hash.h

index 5c3b1cde346eb403fac967e3954094b6e19084d9..1bd64394ac192917d65c5439e3e77c557884026b 100644 (file)
@@ -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;                                                                                                          \
                        }                                                                                                                               \