summaryrefslogtreecommitdiff
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 28354805ac..b3050d25cb 100644
--- a/parse.y
+++ b/parse.y
@@ -8396,7 +8396,7 @@ rb_intern2(const char *name, long len)
fake_str.basic.flags = T_STRING|RSTRING_NOEMBED|FL_FREEZE;
fake_str.basic.klass = rb_cString;
fake_str.as.heap.len = len;
- fake_str.as.heap.ptr = name;
+ fake_str.as.heap.ptr = (char *)name;
fake_str.as.heap.aux.capa = len;
if (st_lookup(global_symbols.sym_id, (st_data_t)&fake_str, (st_data_t *)&id))