mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
proc.c: constify
* proc.c (method_callable_method_entry): constify data. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
02377a3a79
commit
c8932036d2
1 changed files with 1 additions and 1 deletions
2
proc.c
2
proc.c
|
@ -1949,7 +1949,7 @@ rb_method_call(int argc, const VALUE *argv, VALUE method)
|
|||
}
|
||||
|
||||
static const rb_callable_method_entry_t *
|
||||
method_callable_method_entry(struct METHOD *data)
|
||||
method_callable_method_entry(const struct METHOD *data)
|
||||
{
|
||||
if (data->me->defined_class == 0) rb_bug("method_callable_method_entry: not callable.");
|
||||
return (const rb_callable_method_entry_t *)data->me;
|
||||
|
|
Loading…
Reference in a new issue