com php-src: Using int32_t opposite of uint32 _t: Zend/zend_types.h

From: Date: Tue, 31 Mar 2015 04:40:29 +0000
Subject: com php-src: Using int32_t opposite of uint32 _t: Zend/zend_types.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-85953@lists.php.net to get a copy of this message
Commit: d7835ee22417c45aed39cc325a8e929774faa19c Author: Xinchen Hui <laruence@php.net> Tue, 31 Mar 2015 12:40:29 +0800 Parents: b72fd9c25834056c83b6fba01a530af94075cbf8 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d7835ee22417c45aed39cc325a8e929774faa19c Log: Using int32_t opposite of uint32_t Changed paths: M Zend/zend_types.h Diff: diff --git a/Zend/zend_types.h b/Zend/zend_types.h index 39464df..369f20f 100644 --- a/Zend/zend_types.h +++ b/Zend/zend_types.h @@ -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) \

« previous php.cvs (#85953) next »