]> granicus.if.org Git - php/commitdiff
Remove spurious int cast in between two longs
authorEtienne Kneuss <colder@php.net>
Sat, 16 Mar 2013 17:19:14 +0000 (18:19 +0100)
committerEtienne Kneuss <colder@php.net>
Sat, 16 Mar 2013 17:19:14 +0000 (18:19 +0100)
ext/spl/spl_dllist.c

index 964ad994da0a9aa40ddd5c2c56e361e27e25c92c..38e6aaccd93b03c924d3d646e5541884624a59c8 100644 (file)
@@ -875,7 +875,7 @@ SPL_METHOD(SplDoublyLinkedList, offsetUnset)
        }
 
        intern = (spl_dllist_object*)zend_object_store_get_object(getThis() TSRMLS_CC);
-       index  = (int)spl_offset_convert_to_long(zindex TSRMLS_CC);
+       index  = spl_offset_convert_to_long(zindex TSRMLS_CC);
     llist  = intern->llist;
 
     if (index < 0 || index >= intern->llist->count) {