summaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
Diffstat (limited to 'ast.c')
-rw-r--r--ast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ast.c b/ast.c
index c3f28eba0b..2df4bdd870 100644
--- a/ast.c
+++ b/ast.c
@@ -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);
}