]> 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:28:29 +0000 (15:28 -0400)
Zend/zend_hash.h

index a763fc7033d144ce7957e5c01c70f9bb80b795e6..81146e9dd0d9e4155fda9e20cbd10816fc89888f 100644 (file)
@@ -331,7 +331,7 @@ END_EXTERN_C()
                                if (idx-1 > LONG_MAX) { /* overflow */                                          \
                                        break;                                                                                                  \
                                }                                                                                                                       \
-                               idx = -idx;                                                                                     \
+                               idx = 0 - idx;                                                                                  \
                        } else if (idx > LONG_MAX) { /* overflow */                                             \
                                break;                                                                                                          \
                        }                                                                                                                               \