summaryrefslogtreecommitdiff
path: root/ext/spl/spl_engine.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl/spl_engine.c')
-rw-r--r--ext/spl/spl_engine.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/spl/spl_engine.c b/ext/spl/spl_engine.c
index 0cfcb8ee18..0cd63dba78 100644
--- a/ext/spl/spl_engine.c
+++ b/ext/spl/spl_engine.c
@@ -40,7 +40,7 @@ PHPAPI void spl_instantiate(zend_class_entry *pce, zval *object TSRMLS_DC)
}
/* }}} */
-PHPAPI long spl_offset_convert_to_long(zval *offset TSRMLS_DC) /* {{{ */
+PHPAPI long spl_offset_convert_to_int(zval *offset TSRMLS_DC) /* {{{ */
{
ulong idx;
@@ -52,8 +52,8 @@ PHPAPI long spl_offset_convert_to_long(zval *offset TSRMLS_DC) /* {{{ */
break;
case IS_DOUBLE:
return (long)Z_DVAL_P(offset);
- case IS_LONG:
- return Z_LVAL_P(offset);
+ case IS_INT:
+ return Z_IVAL_P(offset);
case IS_FALSE:
return 0;
case IS_TRUE: