aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 56df203b8d..70c57ac796 100644
--- a/parse.y
+++ b/parse.y
@@ -8420,8 +8420,8 @@ rb_symname_p(const char *name)
ID
rb_intern2(const char *name, long len)
{
- const char *m = name;
VALUE str = rb_str_new(name, len);
+ const char *m = RSTRING_PTR(str);
ID id;
int last;