]> granicus.if.org Git - php/commitdiff
Fix for the moment
authorMarcus Boerger <helly@php.net>
Tue, 22 Jul 2003 20:53:56 +0000 (20:53 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 22 Jul 2003 20:53:56 +0000 (20:53 +0000)
Zend/zend_hash.h

index 20d46abdc4d648598dd94d37292c4ea36178d568..48dede3dcd6e798fc140860ec6ce6c1686ea0086 100644 (file)
@@ -288,7 +288,7 @@ END_EXTERN_C()
 
 static inline int zend_symtable_update(HashTable *ht, char *arKey, uint nKeyLength, void *pData, uint nDataSize, void **pDest)                                 \
 {
-       int idx;
+       long idx;
 
        if (zend_is_numeric_key(arKey, nKeyLength, &idx)) {
                return zend_hash_index_update(ht, idx, pData, nDataSize, pDest);
@@ -300,7 +300,7 @@ static inline int zend_symtable_update(HashTable *ht, char *arKey, uint nKeyLeng
 
 static inline int zend_symtable_del(HashTable *ht, char *arKey, uint nKeyLength)
 {
-       int idx;
+       long idx;
 
        if (zend_is_numeric_key(arKey, nKeyLength, &idx)) {
                return zend_hash_index_del(ht, idx);
@@ -312,7 +312,7 @@ static inline int zend_symtable_del(HashTable *ht, char *arKey, uint nKeyLength)
 
 static inline int zend_symtable_find(HashTable *ht, char *arKey, uint nKeyLength, void **pData)
 {
-       int idx;
+       long idx;
 
        if (zend_is_numeric_key(arKey, nKeyLength, &idx)) {
                return zend_hash_index_find(ht, idx, pData);
@@ -324,7 +324,7 @@ static inline int zend_symtable_find(HashTable *ht, char *arKey, uint nKeyLength
 
 static inline int zend_symtable_exists(HashTable *ht, char *arKey, uint nKeyLength)
 {
-       int idx;
+       long idx;
 
        if (zend_is_numeric_key(arKey, nKeyLength, &idx)) {
                return zend_hash_index_exists(ht, idx);