summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-10-09 15:03:19 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-10-09 15:03:19 +0000
commitc985c105711174c9da04be81be428b34fa8fcff5 (patch)
treedca183bc6ec1c1bce915cd0a0c64aa10848dbe0c /eval.c
parent15df4ac5eab4144aac6bf83f3747b139b0df9d51 (diff)
eval.c commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/eval.c b/eval.c
index b71dc9b71d..726eef473a 100644
--- a/eval.c
+++ b/eval.c
@@ -2031,11 +2031,11 @@ rb_eval(self, n)
{
VALUE r = rb_eval(self,node->nd_recv);
VALUE l = rb_eval(self,node->nd_value);
- if (TYPE(r) == T_STRING) {
- result = rb_reg_match(l, r);
+ if (TYPE(l) == T_STRING) {
+ result = rb_reg_match(r, l);
}
else {
- result = rb_funcall(r, match, 1, l);
+ result = rb_funcall(l, match, 1, r);
}
}
break;