Skip to content

Commit 6415583

Browse files
committed
Correcting check isNaN
1 parent e9dc207 commit 6415583

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/MathModuleBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1837,7 +1837,7 @@ public double log1pPI(PInt value) {
18371837
@Specialization
18381838
@TruffleBoundary
18391839
public double log1pD(double value) {
1840-
if (value == 0 || value == Double.POSITIVE_INFINITY || value == Double.NaN) {
1840+
if (value == 0 || value == Double.POSITIVE_INFINITY || Double.isNaN(value)) {
18411841
return value;
18421842
}
18431843
double result = Math.log1p(value);

0 commit comments

Comments
 (0)