diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-15 08:55:56 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-15 08:55:56 +0000 |
commit | 402906e265bf5eeb94d6de5db2246ca15c4746a7 (patch) | |
tree | 55b1c501769fc69c14b56fc21a7467805526a59d /ast.c | |
parent | da7dedecae53231a949e31af0b4d319b298e6ddf (diff) |
merge revision(s) 66736: [Backport #15511]
ast.c: argument must be a string
[ruby-core:90904] [Bug #15511]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@66827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ast.c')
-rw-r--r-- | ast.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -96,7 +96,7 @@ rb_ast_parse_str(VALUE str) { rb_ast_t *ast = 0; - str = rb_check_string_type(str); + StringValue(str); ast = rb_parser_compile_string_path(ast_parse_new(), Qnil, str, 1); return ast_parse_done(ast); } |