Skip to content

Commit

Permalink
Fix is_const_expr in compile_each_keyword_arg
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanahsmith committed Sep 30, 2020
1 parent b7d36ef commit eeae3a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/liquid_c/variable.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ static int compile_each_keyword_arg(VALUE key, VALUE value, VALUE func_arg)

vm_assembler_add_push_const(code, key);

bool is_const_expr = rb_respond_to(value, id_evaluate) == Qtrue;
bool is_const_expr = !rb_respond_to(value, id_evaluate);
compile_expression(code, value, is_const_expr);

return ST_CONTINUE;
Expand Down

0 comments on commit eeae3a1

Please sign in to comment.