Commit:    e6d9cd983b3503d38389d0c67267c773a98af174
Author:    Nuno Lopes <nlop...@php.net>         Sun, 8 Jul 2012 15:19:41 -0400
Parents:   a76878cd594e5b8160800abb9e21cc25cb264d7f
Branches:  master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=e6d9cd983b3503d38389d0c67267c773a98af174

Log:
appease MSVC (doesnt like unary minus of unsigned ints)

Changed paths:
  M  Zend/zend_hash.h


Diff:
diff --git a/Zend/zend_hash.h b/Zend/zend_hash.h
index 5c3b1cd..1bd6439 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;                                          
                                                                \
                        }                                                       
                                                                        \


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to