aboutsummaryrefslogtreecommitdiffstats
path: root/vm_method.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-30 18:30:42 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-30 18:30:42 +0000
commit54aebe6785ef1c83380584b5c05610d555a4d4a9 (patch)
tree2b3662a472c6a1a4f8d5ef2077eeac8fe82bfa7a /vm_method.c
parenta6290ae0fee1df2bd61f2dec1847f0ed18a95ea7 (diff)
downloadruby-54aebe6785ef1c83380584b5c05610d555a4d4a9.tar.gz
* method.h, vm_method.c (rb_free_method_entry): constify a parameter.
* vm_method.c (rb_unlink_method_entry): constify a parameter. * vm_core.h: remove useless declaration about rb_unlink_method_entry(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_method.c b/vm_method.c
index e3d6b41a31..cefc1469b7 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -193,10 +193,10 @@ release_method_definition(rb_method_definition_t *def)
}
void
-rb_free_method_entry(rb_method_entry_t *me)
+rb_free_method_entry(const rb_method_entry_t *me)
{
release_method_definition(me->def);
- xfree(me);
+ xfree((void *)me);
}
static inline rb_method_entry_t *search_method(VALUE klass, ID id, VALUE *defined_class_ptr);