summaryrefslogtreecommitdiff
path: root/rational.c
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-09 15:13:45 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-09 15:13:45 +0000
commit4879ae65fde1f7cd9b6133fe9e732d0ddcfadc12 (patch)
tree8042e564851f56afdcd92bfea82fe8ab415e4f2b /rational.c
parent52654587548e5acacffd34d403b6a10ffaca9989 (diff)
downloadbundler-4879ae65fde1f7cd9b6133fe9e732d0ddcfadc12.tar.gz
fixed
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rational.c')
-rw-r--r--rational.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/rational.c b/rational.c
index 54bca51094..379551a345 100644
--- a/rational.c
+++ b/rational.c
@@ -1422,8 +1422,9 @@ nurat_s_convert(int argc, VALUE *argv, VALUE klass)
{
VALUE a1, a2;
- if (rb_scan_args(argc, argv, "02", &a1, &a2) == 1)
- a2 = ONE;
+ a1 = Qnil;
+ a2 = Qnil;
+ rb_scan_args(argc, argv, "02", &a1, &a2);
switch (TYPE(a1)) {
case T_COMPLEX: