Skip to content

Commit aa8c4f2

Browse files
committed
WIP nTableMask requires powers of 2
1 parent 4f9c7f9 commit aa8c4f2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Zend/zend_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ struct _zend_array {
331331
HT_HASH_EX((ht)->arData, idx)
332332

333333
#define HT_SIZE_TO_MASK(nTableSize) \
334-
((uint32_t)(-((nTableSize) + (nTableSize))))
334+
(nTableSize <= 8 ? ((uint32_t)(-16)) : (uint32_t)(-((nTableSize) + (nTableSize))))
335335
#define HT_HASH_SIZE(nTableMask) \
336336
(((size_t)(uint32_t)-(int32_t)(nTableMask)) * sizeof(uint32_t))
337337
#define HT_DATA_SIZE(nTableSize) \

travis/compile.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
--enable-zts \
77
--disable-all
88

9-
make "-j${MAKE_JOBS}" $MAKE_QUIET > "$MAKE_LOG_FILE"
10-
make install >> "$MAKE_LOG_FILE"
9+
make "-j${MAKE_JOBS}"
10+
make install

0 commit comments

Comments
 (0)