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:
parent
7a6ebecf9e
commit
d64eef156f
1 changed files with 1 additions and 1 deletions
2
math.c
2
math.c
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue