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

ruby-changes:40874

From: ko1 <ko1@a...>
Date: Tue, 8 Dec 2015 23:05:52 +0900 (JST)
Subject: [ruby-changes:40874] ko1:r52953 (trunk): * iseq.c (iseq_s_load): fix mysterious bug.

ko1	2015-12-08 23:05:44 +0900 (Tue, 08 Dec 2015)

  New Revision: 52953

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

  Log:
    * iseq.c (iseq_s_load): fix mysterious bug.

  Modified files:
    trunk/ChangeLog
    trunk/iseq.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 52952)
+++ ChangeLog	(revision 52953)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Dec  8 23:04:02 2015  Koichi Sasada  <ko1@a...>
+
+	* iseq.c (iseq_s_load): fix mysterious bug.
+
 Tue Dec  8 22:31:58 2015  Koichi Sasada  <ko1@a...>
 
 	* introduce new ISeq binary format serializer/de-serializer
Index: iseq.c
===================================================================
--- iseq.c	(revision 52952)
+++ iseq.c	(revision 52953)
@@ -587,7 +587,7 @@ static VALUE https://github.com/ruby/ruby/blob/trunk/iseq.c#L587
 iseq_s_load(int argc, VALUE *argv, VALUE self)
 {
     VALUE data, opt=Qnil;
-    rb_scan_args(argc, argv, "01", &opt);
+    rb_scan_args(argc, argv, "11", &data, &opt);
     return iseq_load(data, NULL, opt);
 }
 

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

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