diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-21 21:41:04 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-21 21:41:04 +0000 |
commit | 331fb4a2b3576ee364dc67f212b3c9c759fafdd8 (patch) | |
tree | 2aa54ede5ceee09162d3216364f1b48b1aeb3afe /iseq.c | |
parent | 684c449c361ab8c29ddca6d7e9a77fb7ea82864c (diff) |
* 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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |