* expand tabs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
161ece4795
commit
4bcfccddca
@ -2514,9 +2514,9 @@ int
|
|||||||
ruby_float_step(VALUE from, VALUE to, VALUE step, int excl, int allow_endless)
|
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)) {
|
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 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);
|
double n = ruby_float_step_size(beg, end, unit, excl);
|
||||||
long i;
|
long i;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user