Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzhu2118 committed Jan 5, 2021
1 parent 61e88b3 commit a15e79f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ext/liquid_c/vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ static VALUE vm_render_until_error(VALUE uncast_args)
ip += 3;
args->ip = ip;
args->const_ptr = const_ptr;
args->tags_ptr = tags_ptr;
break;
case OP_POP_WRITE:
{
Expand Down Expand Up @@ -408,7 +409,8 @@ VALUE liquid_vm_evaluate(VALUE context, vm_assembler_t *code)
vm_render_until_error_args_t args = {
.vm = vm,
.const_ptr = (const size_t *)code->constants.data,
.ip = code->instructions.data
.ip = code->instructions.data,
.tags_ptr = (const VALUE *)code->tags.data
};
vm_render_until_error((VALUE)&args);
VALUE ret = vm_stack_pop(vm);
Expand Down

0 comments on commit a15e79f

Please sign in to comment.