Skip to content

Commit

Permalink
Arena should be a pointer pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
jbboehr committed Feb 12, 2024
1 parent 0693fae commit ad9ddd8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion php_vyrtue.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ HashTable *vyrtue_context_scope_stack_top_ht(struct vyrtue_context *ctx);
VYRTUE_PUBLIC
VYRTUE_ATTR_NONNULL_ALL
VYRTUE_ATTR_RETURNS_NONNULL
zend_arena *vyrtue_context_get_arena(struct vyrtue_context *ctx);
zend_arena **vyrtue_context_get_arena_ptr(struct vyrtue_context *ctx);

VYRTUE_PUBLIC
zend_never_inline void vyrtue_ast_process(zend_ast *ast);
Expand Down
4 changes: 2 additions & 2 deletions src/context.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
VYRTUE_PUBLIC
VYRTUE_ATTR_NONNULL_ALL
VYRTUE_ATTR_RETURNS_NONNULL
zend_arena *vyrtue_context_get_arena(struct vyrtue_context *ctx)
zend_arena **vyrtue_context_get_arena_ptr(struct vyrtue_context *ctx)
{
return ctx->arena;
return &ctx->arena;
}

VYRTUE_PUBLIC
Expand Down

0 comments on commit ad9ddd8

Please sign in to comment.