Using int32_t opposite of uint32_t

This commit is contained in:
Xinchen Hui 2015-03-31 12:40:29 +08:00
parent b72fd9c258
commit d7835ee224

View File

@ -224,12 +224,12 @@ struct _zend_array {
#endif
#define HT_HASH_EX(data, idx) \
((uint32_t*)(data))[(int)(idx)]
((uint32_t*)(data))[(int32_t)(idx)]
#define HT_HASH(ht, idx) \
HT_HASH_EX((ht)->arData, idx)
#define HT_HASH_SIZE(ht) \
((-(int)(ht)->nTableMask) * sizeof(uint32_t))
((-(int32_t)(ht)->nTableMask) * sizeof(uint32_t))
#define HT_DATA_SIZE(ht) \
((ht)->nTableSize * sizeof(Bucket))
#define HT_SIZE(ht) \