summaryrefslogtreecommitdiff
path: root/rational.c
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-18 00:35:06 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-18 00:35:06 +0000
commit42d38decda9249ba77b365f2b242a76e7e109945 (patch)
treea230abe95a8f2dbc8b889de4b867cc7aae5dec0d /rational.c
parent7a1985a96970f7e759b945be74e7a8f41a797cd8 (diff)
downloadruby-42d38decda9249ba77b365f2b242a76e7e109945.tar.gz
* complex.c (read_comp): mathn compliant.
* rational.c (read_num): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rational.c')
-rw-r--r--rational.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rational.c b/rational.c
index 9718913a07..24d7ff1afe 100644
--- a/rational.c
+++ b/rational.c
@@ -2011,13 +2011,13 @@ read_num(const char **s, int numsign, int strict,
{
VALUE ip, fp, exp;
- *num = rb_rational_raw2(ZERO, ONE);
+ *num = rb_rational_new2(ZERO, ONE);
exp = Qnil;
if (**s != '.') {
if (!read_digits(s, strict, &ip, NULL))
return 0;
- *num = rb_rational_raw2(ip, ONE);
+ *num = rb_rational_new2(ip, ONE);
}
if (**s == '.') {