Skip to content

Commit b2b018d

Browse files
committed
appease MSVC (doesnt like unary minus of unsigned ints)
1 parent 26b37f1 commit b2b018d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_hash.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ END_EXTERN_C()
331331
if (idx-1 > LONG_MAX) { /* overflow */ \
332332
break; \
333333
} \
334-
idx = -idx; \
334+
idx = 0 - idx; \
335335
} else if (idx > LONG_MAX) { /* overflow */ \
336336
break; \
337337
} \

0 commit comments

Comments
 (0)