From c5618920ed9cdfafc539a7b43f0911fbdff7bd19 Mon Sep 17 00:00:00 2001 From: ko1 Date: Tue, 21 Jul 2015 21:19:02 +0000 Subject: * method.h: constify rb_method_iseq_t::iseqptr. * proc.c (rb_method_entry_min_max_arity): catch up this fix. * vm_insnhelper.c (def_iseq_ptr): constify. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- method.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'method.h') diff --git a/method.h b/method.h index 1a409cc0d4..c421d48e3a 100644 --- a/method.h +++ b/method.h @@ -121,7 +121,7 @@ typedef enum { typedef struct rb_iseq_struct rb_iseq_t; typedef struct rb_method_iseq_struct { - rb_iseq_t * const iseqptr; /* should be separated from iseqval */ + const rb_iseq_t * const iseqptr; /* should be separated from iseqval */ rb_cref_t * const cref; /* shoudl be marked */ } rb_method_iseq_t; /* check rb_add_method_iseq() when modify the fields */ -- cgit v1.2.3