Permalink
Browse files

appease MSVC (doesnt like unary minus of unsigned ints)

  • Loading branch information...
1 parent 26b37f1 commit b2b018d5f7d0d7a0bc88e6a95fe804c39bd65b9a @nunoplopes nunoplopes committed Jul 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Zend/zend_hash.h
View
2 Zend/zend_hash.h
@@ -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; \
} \

0 comments on commit b2b018d

Please sign in to comment.