summaryrefslogtreecommitdiff
path: root/Zend/zend_ast.h
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/zend_ast.h')
-rw-r--r--Zend/zend_ast.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_ast.h b/Zend/zend_ast.h
index 3efadf7164..de67c50c9f 100644
--- a/Zend/zend_ast.h
+++ b/Zend/zend_ast.h
@@ -268,7 +268,7 @@ static zend_always_inline zend_ast *zend_ast_create_cast(uint32_t type, zend_ast
}
static zend_always_inline void zend_ast_list_rtrim(zend_ast *ast) {
zend_ast_list *list = zend_ast_get_list(ast);
- while (list->children && list->child[list->children - 1] == NULL) {
+ if (list->children && list->child[list->children - 1] == NULL) {
list->children--;
}
}