aboutsummaryrefslogtreecommitdiffstats
path: root/iseq.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-21 21:41:04 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-21 21:41:04 +0000
commit331fb4a2b3576ee364dc67f212b3c9c759fafdd8 (patch)
tree2aa54ede5ceee09162d3216364f1b48b1aeb3afe /iseq.c
parent684c449c361ab8c29ddca6d7e9a77fb7ea82864c (diff)
downloadruby-331fb4a2b3576ee364dc67f212b3c9c759fafdd8.tar.gz
* vm_core.h: constify rb_call_info_t::kw_arg,
rb_control_frame_t::iseq and rb_control_frame_t::block_iseq. * iseq.c (iseq_free): catch up this fix. * vm.c: ditto. * vm_dump.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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);
}