Skip to content

Commit bf4b4f6

Browse files
committed
Review
1 parent 4e489f0 commit bf4b4f6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Zend/zend_ast.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1464,7 +1464,7 @@ ZEND_API zend_ast * ZEND_FASTCALL zend_ast_dup(zend_ast *ast)
14641464
void *buf = zend_ast_alloc(zend_ast_tree_size(ast));
14651465
zend_ast_tree_copy(ast, buf);
14661466

1467-
return (zend_ast*)buf;
1467+
return buf;
14681468
}
14691469

14701470
ZEND_API void ZEND_FASTCALL zend_ast_destroy(zend_ast *ast)
@@ -2567,10 +2567,11 @@ static ZEND_COLD void zend_ast_export_ex(smart_str *str, zend_ast *ast, int prio
25672567
zend_ast_export_ex(str, ast->child[1], 0, indent);
25682568
smart_str_appendc(str, ')');
25692569
break;
2570-
case ZEND_AST_CALLABLE_CONVERT:;
2570+
case ZEND_AST_CALLABLE_CONVERT: {
25712571
zend_ast_fcc *fcc_ast = (zend_ast_fcc*)ast;
25722572
ast = fcc_ast->args;
25732573
goto simple_list;
2574+
}
25742575
case ZEND_AST_CLASS_CONST:
25752576
zend_ast_export_ns_name(str, ast->child[0], 0, indent);
25762577
smart_str_appends(str, "::");

0 commit comments

Comments
 (0)