summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index 2673df5dbb..4d344fff9c 100644
--- a/compile.c
+++ b/compile.c
@@ -878,7 +878,7 @@ rb_iseq_compile_yarp_node(rb_iseq_t * iseq, const yp_node_t *yarp_pointer, yp_pa
yp_constant_t constant = parser->constant_pool.constants[index];
if (constant.id != 0) {
- constants[constant.id - 1] = rb_intern3(constant.start, constant.length, encoding);
+ constants[constant.id - 1] = rb_intern3((const char *) constant.start, constant.length, encoding);
}
}