summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Zend/zend_hash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_hash.h b/Zend/zend_hash.h
index 84ca1de345..5c3b1cde34 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 = (ulong)(-(long)idx); \
+ idx = -idx; \
} else if (idx > LONG_MAX) { /* overflow */ \
break; \
} \