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

ruby-changes:10769

From: nobu <ko1@a...>
Date: Mon, 16 Feb 2009 02:39:44 +0900 (JST)
Subject: [ruby-changes:10769] Ruby:r22334 (trunk): * complex.c (f_signbit): fixed indentation.

nobu	2009-02-16 02:39:38 +0900 (Mon, 16 Feb 2009)

  New Revision: 22334

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22334

  Log:
    * complex.c (f_signbit): fixed indentation.

  Modified files:
    trunk/complex.c

Index: complex.c
===================================================================
--- complex.c	(revision 22333)
+++ complex.c	(revision 22334)
@@ -891,22 +891,19 @@
 f_signbit(VALUE x)
 {
     switch (TYPE(x)) {
-      case T_FLOAT:
+      case T_FLOAT: {
 #ifdef HAVE_SIGNBIT
-      {
-	  double f = RFLOAT_VALUE(x);
-	  return f_boolcast(!isnan(f) && signbit(f));
-      }
+	double f = RFLOAT_VALUE(x);
+	return f_boolcast(!isnan(f) && signbit(f));
 #else
-      {
-	  char s[2];
-	  double f = RFLOAT_VALUE(x);
+	char s[2];
+	double f = RFLOAT_VALUE(x);
 
-	  if (isnan(f)) return Qfalse;
-	  (void)snprintf(s, sizeof s, "%.0f", f);
-	  return f_boolcast(s[0] == '-');
-      }
+	if (isnan(f)) return Qfalse;
+	(void)snprintf(s, sizeof s, "%.0f", f);
+	return f_boolcast(s[0] == '-');
 #endif
+      }
     }
     return f_negative_p(x);
 }

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

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