summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}