ruby-changes:21444
From: ngoto <ko1@a...>
Date: Thu, 20 Oct 2011 21:30:27 +0900 (JST)
Subject: [ruby-changes:21444] ngoto:r33493 (trunk): * vm_eval.c (check_funcall): set array elements one-by-one to fix
ngoto 2011-10-20 21:30:13 +0900 (Thu, 20 Oct 2011) New Revision: 33493 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33493 Log: * vm_eval.c (check_funcall): set array elements one-by-one to fix compile error with Fujitsu C Compiler 5.6 on Solaris 10 on Sparc. Modified files: trunk/ChangeLog trunk/vm_eval.c Index: ChangeLog =================================================================== --- ChangeLog (revision 33492) +++ ChangeLog (revision 33493) @@ -1,3 +1,8 @@ +Thu Oct 20 21:19:15 2011 Naohisa Goto <ngotogenome@g...> + + * vm_eval.c (check_funcall): set array elements one-by-one to fix + compile error with Fujitsu C Compiler 5.6 on Solaris 10 on Sparc. + Thu Oct 20 13:09:35 2011 Nobuyoshi Nakada <nobu@r...> * include/ruby/defines.h (flush_register_windows): use software Index: vm_eval.c =================================================================== --- vm_eval.c (revision 33492) +++ vm_eval.c (revision 33493) @@ -272,7 +272,10 @@ me = rb_method_entry(klass, idRespond_to); if (me && !(me->flag & NOEX_BASIC)) { - VALUE args[2] = {ID2SYM(mid), Qtrue}; + VALUE args[2]; + + args[0] = ID2SYM(mid); + args[1] = Qtrue; if (!RTEST(vm_call0(th, recv, idRespond_to, 2, args, me))) { return Qundef; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/