summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-08 14:05:44 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-08 14:05:44 +0000
commit23124ffbe845b9e8bec665159c584f09c7dc4491 (patch)
treefac32223af4c920efe6c257dad8734a1c1b06933
parent99c89fa56afe59b5755f0028dffa2cb9c9cff9f3 (diff)
* iseq.c (iseq_s_load): fix mysterious bug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--iseq.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index adbdaf7..f583dea 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Dec 8 23:04:02 2015 Koichi Sasada <ko1@atdot.net>
+
+ * iseq.c (iseq_s_load): fix mysterious bug.
+
Tue Dec 8 22:31:58 2015 Koichi Sasada <ko1@atdot.net>
* introduce new ISeq binary format serializer/de-serializer
diff --git a/iseq.c b/iseq.c
index 061de83..1fd4009 100644
--- a/iseq.c
+++ b/iseq.c
@@ -587,7 +587,7 @@ static VALUE
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);
}