1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-05-04 02:41:35 +00:00
parent 7a6ebecf9e
commit d64eef156f

2
math.c
View file

@ -79,7 +79,7 @@ math_atan2(VALUE obj, VALUE y, VALUE x)
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 */