summaryrefslogtreecommitdiff
path: root/vm_method.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-30 18:30:42 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-30 18:30:42 (GMT)
commit9cf6751f8393dd28294b6ed0c40650f7b4235b20 (patch)
tree2b3662a472c6a1a4f8d5ef2077eeac8fe82bfa7a /vm_method.c
parentcc09968d71b70cc6b4eab7064ed7fc96ec61cd16 (diff)
* 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 e3d6b41..cefc146 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);