diff options
author | Anatol Belski <ab@php.net> | 2014-08-25 19:24:55 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-08-25 19:24:55 +0200 |
commit | c3e3c98ec666812daaaca896cf5ef758a8a6df14 (patch) | |
tree | d82a76de5c8d117d1cf2dcca19bb30a283621870 /ext/spl/spl_engine.c | |
parent | 0cf2dbdf58645b52cb6582b1b2571c5cd9e9e6b3 (diff) | |
download | php-git-c3e3c98ec666812daaaca896cf5ef758a8a6df14.tar.gz |
master renames phase 1
Diffstat (limited to 'ext/spl/spl_engine.c')
-rw-r--r-- | ext/spl/spl_engine.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/spl/spl_engine.c b/ext/spl/spl_engine.c index 1cae08e652..cb069efcb1 100644 --- a/ext/spl/spl_engine.c +++ b/ext/spl/spl_engine.c @@ -40,9 +40,9 @@ PHPAPI void spl_instantiate(zend_class_entry *pce, zval *object TSRMLS_DC) } /* }}} */ -PHPAPI php_int_t spl_offset_convert_to_int(zval *offset TSRMLS_DC) /* {{{ */ +PHPAPI zend_long spl_offset_convert_to_int(zval *offset TSRMLS_DC) /* {{{ */ { - php_uint_t idx; + zend_ulong idx; switch (Z_TYPE_P(offset)) { case IS_STRING: @@ -51,9 +51,9 @@ PHPAPI php_int_t spl_offset_convert_to_int(zval *offset TSRMLS_DC) /* {{{ */ } break; case IS_DOUBLE: - return (php_int_t)Z_DVAL_P(offset); - case IS_INT: - return Z_IVAL_P(offset); + return (zend_long)Z_DVAL_P(offset); + case IS_LONG: + return Z_LVAL_P(offset); case IS_FALSE: return 0; case IS_TRUE: |