summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2023-08-30 14:32:52 -0400
committerKevin Newton <kddnewton@gmail.com>2023-08-30 14:41:39 -0400
commit49dff732e8734dccc7e30102cadc13290618d54a (patch)
tree57d20b22f94c73d7da006f4c58ee438706c21056 /compile.c
parent7be08f3f58a818461b43c8f9a756d656e7e928c5 (diff)
Update YARP APIs to handle uint8_t
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);
}
}