* expand tabs.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
svn 2018-11-14 09:53:13 +00:00
parent a6e887153e
commit 33758ded08

View File

@ -930,9 +930,9 @@ nurat_div(VALUE self, VALUE other)
} }
} }
else if (RB_FLOAT_TYPE_P(other)) { else if (RB_FLOAT_TYPE_P(other)) {
double d = nurat_to_double(self); double d = nurat_to_double(self);
VALUE v = rb_float_new(d); VALUE v = rb_float_new(d);
return rb_flo_div_flo(v, other); return rb_flo_div_flo(v, other);
} }
else if (RB_TYPE_P(other, T_RATIONAL)) { else if (RB_TYPE_P(other, T_RATIONAL)) {
if (f_zero_p(other)) if (f_zero_p(other))
@ -971,7 +971,7 @@ nurat_fdiv(VALUE self, VALUE other)
{ {
VALUE div; VALUE div;
if (f_zero_p(other)) if (f_zero_p(other))
return nurat_div(self, rb_float_new(0.0)); return nurat_div(self, rb_float_new(0.0));
if (FIXNUM_P(other) && other == LONG2FIX(1)) if (FIXNUM_P(other) && other == LONG2FIX(1))
return nurat_to_f(self); return nurat_to_f(self);
div = nurat_div(self, other); div = nurat_div(self, other);