ruby-changes:24847
From: shyouhei <ko1@a...>
Date: Tue, 4 Sep 2012 11:36:02 +0900 (JST)
Subject: [ruby-changes:24847] shyouhei:r36898 (trunk): * vm_eval.c (ruby_eval_string_from_file_protect): initializer element is not computable at load time.
shyouhei 2012-09-04 11:35:47 +0900 (Tue, 04 Sep 2012) New Revision: 36898 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36898 Log: * vm_eval.c (ruby_eval_string_from_file_protect): initializer element is not computable at load time. Modified files: trunk/ChangeLog trunk/vm_eval.c Index: ChangeLog =================================================================== --- ChangeLog (revision 36897) +++ ChangeLog (revision 36898) @@ -1,3 +1,8 @@ +Tue Sep 4 11:28:57 2012 URABE Shyouhei <shyouhei@r...> + + * vm_eval.c (ruby_eval_string_from_file_protect): initializer + element is not computable at load time. + Tue Sep 4 07:48:35 2012 Martin Bosslet <Martin.Bosslet@g...> * test/openssl/test_asn1_rb: Index: vm_eval.c =================================================================== --- vm_eval.c (revision 36897) +++ vm_eval.c (revision 36898) @@ -1174,7 +1174,9 @@ VALUE ruby_eval_string_from_file_protect(const char *str, const char *filename, int *state) { - struct eval_string_from_file_arg arg = { str, filename }; + struct eval_string_from_file_arg arg; + arg.str = str; + arg.filename = filename; return rb_protect((VALUE (*)(VALUE))eval_string_from_file_helper, (VALUE)&arg, state); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/