From 331fb4a2b3576ee364dc67f212b3c9c759fafdd8 Mon Sep 17 00:00:00 2001 From: ko1 Date: Tue, 21 Jul 2015 21:41:04 +0000 Subject: * 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 --- iseq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'iseq.c') 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; icallinfo_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); } -- cgit v1.2.3