Skip to content

Commit

Permalink
Fix type of struct value
Browse files Browse the repository at this point in the history
The current type for const_ptr is causing builds with Debian's GCC to
fail on 32-bit architectures, because it is being used as `VALUE *` but
is defined as `size_t *`.
  • Loading branch information
piperswe committed Aug 20, 2024
1 parent ea24277 commit fb7efe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/liquid_c/liquid_vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ static VALUE vm_invoke_filter(vm_t *vm, VALUE filter_name, size_t num_args)
typedef struct vm_render_until_error_args {
vm_t *vm;
const uint8_t *ip; // use for initial address and to save an address for rescuing
const size_t *const_ptr;
const VALUE *const_ptr;

/* rendering fields */
VALUE output;
Expand Down

0 comments on commit fb7efe7

Please sign in to comment.