diff options
author | Xinchen Hui <laruence@gmail.com> | 2016-06-14 08:05:17 -0700 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2016-06-14 08:05:17 -0700 |
commit | 493524454d66adde84e00d249d607ecd540de99f (patch) | |
tree | c8067d381eb524f859cc3f322e373cf5cc0d34bf /Zend/zend_ast.h | |
parent | 8c41df548078425bce27cd833516e3a7392fe1c3 (diff) | |
download | php-git-493524454d66adde84e00d249d607ecd540de99f.tar.gz |
Improve the signature
Diffstat (limited to 'Zend/zend_ast.h')
-rw-r--r-- | Zend/zend_ast.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Zend/zend_ast.h b/Zend/zend_ast.h index de67c50c9f..1bf5f3bae5 100644 --- a/Zend/zend_ast.h +++ b/Zend/zend_ast.h @@ -266,10 +266,11 @@ static zend_always_inline zend_ast *zend_ast_create_assign_op(uint32_t opcode, z static zend_always_inline zend_ast *zend_ast_create_cast(uint32_t type, zend_ast *op0) { return zend_ast_create_ex(ZEND_AST_CAST, type, op0); } -static zend_always_inline void zend_ast_list_rtrim(zend_ast *ast) { +static zend_always_inline zend_ast *zend_ast_list_rtrim(zend_ast *ast) { zend_ast_list *list = zend_ast_get_list(ast); if (list->children && list->child[list->children - 1] == NULL) { list->children--; } + return ast; } #endif |