Skip to content

Commit 18a05cb

Browse files
committed
And another Py_HUGE_VAL -> Py_INFINITY replacement
1 parent e15236d commit 18a05cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/mathmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3909,7 +3909,7 @@ math_ulp_impl(PyObject *module, double x)
39093909
if (Py_IS_INFINITY(x)) {
39103910
return x;
39113911
}
3912-
double inf = Py_HUGE_VAL;
3912+
double inf = Py_INFINITY;
39133913
double x2 = nextafter(x, inf);
39143914
if (Py_IS_INFINITY(x2)) {
39153915
/* special case: x is the largest positive representable float */

0 commit comments

Comments
 (0)