summaryrefslogtreecommitdiff
path: root/ext/spl/spl_array.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-08-20 18:06:01 +0200
committerAnatol Belski <ab@php.net>2014-08-20 18:06:01 +0200
commit4498f93c0ec2c69ac8584f08c49c8ac6257a865a (patch)
tree65b32656120b73d2808e1a41e205cd46778278e6 /ext/spl/spl_array.c
parent8e8a30654e688842360b5b3520737dcd7fb31104 (diff)
downloadphp-git-4498f93c0ec2c69ac8584f08c49c8ac6257a865a.tar.gz
more fixes to ext/spl
Diffstat (limited to 'ext/spl/spl_array.c')
-rw-r--r--ext/spl/spl_array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/spl/spl_array.c b/ext/spl/spl_array.c
index 23f48c802f..46875cd471 100644
--- a/ext/spl/spl_array.c
+++ b/ext/spl/spl_array.c
@@ -493,7 +493,7 @@ static void spl_array_write_dimension_ex(int check_inherited, zval *object, zval
zend_symtable_update_ind(ht, Z_STR_P(offset), value);
return;
case IS_DOUBLE:
- index = (long)Z_DVAL_P(offset);
+ index = (php_int_t)Z_DVAL_P(offset);
goto num_index;
case IS_RESOURCE:
index = Z_RES_HANDLE_P(offset);