summaryrefslogtreecommitdiff
path: root/vm_eval.c
diff options
context:
space:
mode:
authorngoto <ngoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-10-20 12:30:13 +0000
committerngoto <ngoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-10-20 12:30:13 +0000
commita1d308456d5506c809c8fcabfb41e1861d832999 (patch)
tree6d7d247a986ee751cf597ca39849d3f7b76a8a3c /vm_eval.c
parent9c49753182f2fc5e8d8e26c93c3e47ccfe85dba7 (diff)
* 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/vm_eval.c b/vm_eval.c
index 593afacf68..270255eae1 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -272,7 +272,10 @@ check_funcall(VALUE recv, ID mid, int argc, VALUE *argv)
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;
}