зеркало из https://github.com/github/ruby.git
* iseq.c (prepare_iseq_build): initialize iseq_compile_data::err_info
with nil. this fix exception in rb_iseq_load(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
594f2fcfc0
Коммит
8147a76b23
|
@ -1,3 +1,8 @@
|
||||||
|
Thu Feb 17 23:54:29 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
|
||||||
|
|
||||||
|
* iseq.c (prepare_iseq_build): initialize iseq_compile_data::err_info
|
||||||
|
with nil. this fix exception in rb_iseq_load().
|
||||||
|
|
||||||
Thu Feb 17 22:32:35 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
|
Thu Feb 17 22:32:35 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
|
||||||
|
|
||||||
* test/ruby/test_marshal.rb (test_marshal_dump_extra_iv):
|
* test/ruby/test_marshal.rb (test_marshal_dump_extra_iv):
|
||||||
|
|
1
iseq.c
1
iseq.c
|
@ -250,6 +250,7 @@ prepare_iseq_build(rb_iseq_t *iseq,
|
||||||
|
|
||||||
iseq->compile_data = ALLOC(struct iseq_compile_data);
|
iseq->compile_data = ALLOC(struct iseq_compile_data);
|
||||||
MEMZERO(iseq->compile_data, struct iseq_compile_data, 1);
|
MEMZERO(iseq->compile_data, struct iseq_compile_data, 1);
|
||||||
|
iseq->compile_data->err_info = Qnil;
|
||||||
iseq->compile_data->mark_ary = rb_ary_tmp_new(3);
|
iseq->compile_data->mark_ary = rb_ary_tmp_new(3);
|
||||||
|
|
||||||
iseq->compile_data->storage_head = iseq->compile_data->storage_current =
|
iseq->compile_data->storage_head = iseq->compile_data->storage_current =
|
||||||
|
|
Загрузка…
Ссылка в новой задаче