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

* vm_method.c (rb_method_entry_make): fix to pass an ISeq value.

OBJ_WRITTEN() accepts only VALUE.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2013-10-31 05:26:00 +00:00
parent 12592f7e01
commit 667a519db3
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Thu Oct 31 14:09:32 2013 Koichi Sasada <ko1@atdot.net>
* vm_method.c (rb_method_entry_make): fix to pass an ISeq value.
OBJ_WRITTEN() accepts only VALUE.
Wed Oct 30 19:07:57 2013 Akinori MUSHA <knu@iDaemons.org>
* misc/ruby-additional.el (ruby-brace-to-do-end)

View file

@ -323,7 +323,7 @@ rb_method_entry_make(VALUE klass, ID mid, rb_method_type_t type,
switch(def->type) {
case VM_METHOD_TYPE_ISEQ:
OBJ_WRITTEN(klass, Qundef, def->body.iseq);
OBJ_WRITTEN(klass, Qundef, def->body.iseq->self);
break;
case VM_METHOD_TYPE_IVAR:
OBJ_WRITTEN(klass, Qundef, def->body.attr.location);