aboutsummaryrefslogtreecommitdiffstats
path: root/ast.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-17 01:37:58 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-17 01:37:58 +0000
commit9e16a953148559e54e0aa82a325f2f61237ff258 (patch)
treeede35feb3abdeb4d4f15f555d9c1c77163e15fd5 /ast.c
parent0626655604c2e9e10e12f7c6ea60b18bc1231688 (diff)
downloadruby-9e16a953148559e54e0aa82a325f2f61237ff258.tar.gz
ast.c (rb_ast_node_type): return frozen strings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 ec9a98b3e1..22870f18df 100644
--- a/ast.c
+++ b/ast.c
@@ -155,7 +155,7 @@ rb_ast_node_type(VALUE self)
struct ASTNodeData *data;
TypedData_Get_Struct(self, struct ASTNodeData, &rb_node_type, data);
- return rb_str_new_cstr(node_type_to_str(data->node));
+ return rb_fstring_cstr(node_type_to_str(data->node));
}
#define NEW_CHILD(ast, node) node ? ast_new_internal(ast, node) : Qnil