1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

iseq.c: constfied validate_get_insn_info [ci skip]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-03-21 02:20:37 +00:00
parent b4b3de3e7c
commit c700bb1a2b

4
iseq.c
View file

@ -479,7 +479,7 @@ prepare_iseq_build(rb_iseq_t *iseq,
}
#if VM_CHECK_MODE > 0 && VM_INSN_INFO_TABLE_IMPL > 0
static void validate_get_insn_info(rb_iseq_t *iseq);
static void validate_get_insn_info(const rb_iseq_t *iseq);
#endif
void
@ -1576,7 +1576,7 @@ get_insn_info(const rb_iseq_t *iseq, size_t pos)
#if VM_CHECK_MODE > 0 && VM_INSN_INFO_TABLE_IMPL > 0
static void
validate_get_insn_info(rb_iseq_t *iseq)
validate_get_insn_info(const rb_iseq_t *iseq)
{
size_t i;
for (i = 0; i < iseq->body->iseq_size; i++) {