summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authorsvn <svn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-24 05:30:45 +0000
committersvn <svn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-24 05:30:45 +0000
commit4bcfccddca1f2ffb72f435ef2e5eb393448a2dea (patch)
treea91a04a29e759573ac954e8de9a9b20d1fc521d7 /numeric.c
parent161ece479598629f4ace4fa23bfea7bc1331a8a0 (diff)
downloadruby-4bcfccddca1f2ffb72f435ef2e5eb393448a2dea.tar.gz
* expand tabs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/numeric.c b/numeric.c
index 896d667cf8..1221eafa9e 100644
--- a/numeric.c
+++ b/numeric.c
@@ -2514,9 +2514,9 @@ int
ruby_float_step(VALUE from, VALUE to, VALUE step, int excl, int allow_endless)
{
if (RB_TYPE_P(from, T_FLOAT) || RB_TYPE_P(to, T_FLOAT) || RB_TYPE_P(step, T_FLOAT)) {
- double unit = NUM2DBL(step);
+ double unit = NUM2DBL(step);
double beg = NUM2DBL(from);
- double end = (allow_endless && NIL_P(to)) ? (unit < 0 ? -1 : 1)*HUGE_VAL : NUM2DBL(to);
+ double end = (allow_endless && NIL_P(to)) ? (unit < 0 ? -1 : 1)*HUGE_VAL : NUM2DBL(to);
double n = ruby_float_step_size(beg, end, unit, excl);
long i;