mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Remove unnecessary casts
This commit is contained in:
parent
9cf2d1fc69
commit
921e178562
1 changed files with 2 additions and 2 deletions
|
@ -1995,7 +1995,7 @@ PHP_METHOD(SimpleXMLElement, key)
|
|||
RETURN_THROWS();
|
||||
}
|
||||
|
||||
curnode = (xmlNodePtr)((php_libxml_node_ptr *)intern->node)->node;
|
||||
curnode = intern->node->node;
|
||||
RETURN_STRINGL((char*)curnode->name, xmlStrlen(curnode->name));
|
||||
}
|
||||
/* }}} */
|
||||
|
@ -2486,7 +2486,7 @@ static void php_sxe_iterator_current_key(zend_object_iterator *iter, zval *key)
|
|||
|
||||
xmlNodePtr curnode = NULL;
|
||||
if (intern != NULL && intern->node != NULL) {
|
||||
curnode = (xmlNodePtr)((php_libxml_node_ptr *)intern->node)->node;
|
||||
curnode = intern->node->node;
|
||||
}
|
||||
|
||||
if (curnode) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue