summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-16 08:56:45 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-16 08:56:45 +0000
commit50bcd83621bd313873141e3304c81273371afd6e (patch)
tree5eb50c992840e4a8713e0a242008c50124117754 /numeric.c
parent3009bcb67967ebeb3450e771746336512eb03206 (diff)
* numeric.c (fix_quo): typo. a patch from Shin-ichiro HARA
<sinara AT blade.nagaokaut.ac.jp> in [ruby-dev:33130] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numeric.c b/numeric.c
index 0ced2df..f6376c3 100644
--- a/numeric.c
+++ b/numeric.c
@@ -2187,7 +2187,7 @@ fix_quo(VALUE x, VALUE y)
}
switch (TYPE(y)) {
case T_BIGNUM:
- return DOUBLE2NUM((double)FIX2LONG(y) / rb_big2dbl(y));
+ return DOUBLE2NUM((double)FIX2LONG(x) / rb_big2dbl(y));
case T_FLOAT:
return DOUBLE2NUM((double)FIX2LONG(x) / RFLOAT_VALUE(y));
default: