Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
yui-knk committed Apr 21, 2024
1 parent 6d83feb commit c11cc53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ruby_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ parser_compile_string(struct ruby_parser *parser, VALUE fname, VALUE s, int line
parser->data.lex_str.str = str;
parser->data.lex_str.prt = 0;

return rb_parser_compile(parser->parser_params, fname, line, lex_get_str, (rb_parser_input_data)str);
return rb_parser_compile(parser->parser_params, fname, line, lex_get_str, (rb_parser_input_data)&parser->data);
}

static rb_encoding *
Expand Down

0 comments on commit c11cc53

Please sign in to comment.