summaryrefslogtreecommitdiff
path: root/complex.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-02 12:36:06 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-02 12:36:06 +0000
commit292b3e4113eb1258119c0afe5834c8fc8a7f018c (patch)
tree88e9c6becaa0197c8f4241ffcb17c83807accd39 /complex.c
parentc852d76f46a68e28200f0c3f68c8c67879e79c86 (diff)
* complex.c (nucomp_rationalize): fix function. [ruby-core:40667]
[Bug #5546] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'complex.c')
-rw-r--r--complex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/complex.c b/complex.c
index 3186e62fc8..29652c5e4c 100644
--- a/complex.c
+++ b/complex.c
@@ -1374,7 +1374,7 @@ nucomp_rationalize(int argc, VALUE *argv, VALUE self)
rb_raise(rb_eRangeError, "can't convert %s into Rational",
StringValuePtr(s));
}
- return rb_funcall(dat->real, rb_intern("rationalize"), argc, argv);
+ return rb_funcall2(dat->real, rb_intern("rationalize"), argc, argv);
}
/*