diff options
author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-09 15:13:45 +0000 |
---|---|---|
committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-09 15:13:45 +0000 |
commit | 4879ae65fde1f7cd9b6133fe9e732d0ddcfadc12 (patch) | |
tree | 8042e564851f56afdcd92bfea82fe8ab415e4f2b /rational.c | |
parent | 52654587548e5acacffd34d403b6a10ffaca9989 (diff) | |
download | bundler-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.c | 5 |
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: |