[前][次][番号順一覧][スレッド一覧]

ruby-changes:53510

From: svn <ko1@a...>
Date: Wed, 14 Nov 2018 18:53:18 +0900 (JST)
Subject: [ruby-changes:53510] svn:r65726 (trunk): * expand tabs.

svn	2018-11-14 18:53:13 +0900 (Wed, 14 Nov 2018)

  New Revision: 65726

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65726

  Log:
    * expand tabs.

  Modified files:
    trunk/rational.c
Index: rational.c
===================================================================
--- rational.c	(revision 65725)
+++ rational.c	(revision 65726)
@@ -930,9 +930,9 @@ nurat_div(VALUE self, VALUE other) https://github.com/ruby/ruby/blob/trunk/rational.c#L930
 	}
     }
     else if (RB_FLOAT_TYPE_P(other)) {
-	double d = nurat_to_double(self);
-	VALUE v = rb_float_new(d);
-	return rb_flo_div_flo(v, other);
+        double d = nurat_to_double(self);
+        VALUE v = rb_float_new(d);
+        return rb_flo_div_flo(v, other);
     }
     else if (RB_TYPE_P(other, T_RATIONAL)) {
 	if (f_zero_p(other))
@@ -971,7 +971,7 @@ nurat_fdiv(VALUE self, VALUE other) https://github.com/ruby/ruby/blob/trunk/rational.c#L971
 {
     VALUE div;
     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))
 	return nurat_to_f(self);
     div = nurat_div(self, other);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]