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

ruby-changes:33725

From: nobu <ko1@a...>
Date: Sun, 4 May 2014 11:41:38 +0900 (JST)
Subject: [ruby-changes:33725] nobu:r45806 (trunk): * math.c (math_atan2): remove the condition for test.

nobu	2014-05-04 11:41:35 +0900 (Sun, 04 May 2014)

  New Revision: 45806

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

  Log:
    * math.c (math_atan2): remove the condition for test.

  Modified files:
    trunk/math.c
Index: math.c
===================================================================
--- math.c	(revision 45805)
+++ math.c	(revision 45806)
@@ -79,7 +79,7 @@ math_atan2(VALUE obj, VALUE y, VALUE x) https://github.com/ruby/ruby/blob/trunk/math.c#L79
 	    return DBL2NUM(M_PI);
 	return DBL2NUM(-M_PI);
     }
-#if !(defined(HAVE_ATAN2L) && defined(HAVE_ATAN2F)) || 1
+#if !(defined(HAVE_ATAN2L) && defined(HAVE_ATAN2F))
     /* assume atan2() doesn't handle Inf as C99 */
     if (isinf(dx) && isinf(dy)) {
 	/* optimization for FLONUM */

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

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