[前][次][番号順一覧][スレッド一覧]

ruby-changes:31400

From: ko1 <ko1@a...>
Date: Thu, 31 Oct 2013 14:26:06 +0900 (JST)
Subject: [ruby-changes:31400] ko1:r43479 (trunk): * vm_method.c (rb_method_entry_make): fix to pass an ISeq value.

ko1	2013-10-31 14:26:00 +0900 (Thu, 31 Oct 2013)

  New Revision: 43479

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43479

  Log:
    * vm_method.c (rb_method_entry_make): fix to pass an ISeq value.
      OBJ_WRITTEN() accepts only VALUE.

  Modified files:
    trunk/ChangeLog
    trunk/vm_method.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 43478)
+++ ChangeLog	(revision 43479)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Oct 31 14:09:32 2013  Koichi Sasada  <ko1@a...>
+
+	* 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@i...>
 
 	* misc/ruby-additional.el (ruby-brace-to-do-end)
Index: vm_method.c
===================================================================
--- vm_method.c	(revision 43478)
+++ vm_method.c	(revision 43479)
@@ -323,7 +323,7 @@ rb_method_entry_make(VALUE klass, ID mid https://github.com/ruby/ruby/blob/trunk/vm_method.c#L323
 
 	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);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]