ext/yarp/extension.c in yarp-0.10.0 vs ext/yarp/extension.c in yarp-0.11.0
- old
+ new
@@ -345,10 +345,10 @@
yp_parser_init(&parser, yp_string_source(input), yp_string_length(input), filepath);
yp_node_t *node = yp_parse(&parser);
rb_encoding *encoding = rb_enc_find(parser.encoding.name);
- VALUE source = yp_source_new(&parser);
+ VALUE source = yp_source_new(&parser, encoding);
VALUE result_argv[] = {
yp_ast_new(&parser, node, encoding),
parser_comments(&parser, source),
parser_errors(&parser, encoding, source),
parser_warnings(&parser, encoding, source),