summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iseq.c b/iseq.c
index 694b3dfe05..0161dea259 100644
--- a/iseq.c
+++ b/iseq.c
@@ -80,8 +80,8 @@ iseq_free(void *ptr)
if (iseq->callinfo_entries) {
for (i=0; i<iseq->callinfo_size; i++) {
/* TODO: revisit callinfo data structure */
- rb_call_info_kw_arg_t *kw_arg = iseq->callinfo_entries[i].kw_arg;
- ruby_xfree(kw_arg);
+ const rb_call_info_kw_arg_t *kw_arg = iseq->callinfo_entries[i].kw_arg;
+ ruby_xfree((void *)kw_arg);
}
ruby_xfree(iseq->callinfo_entries);
}