8000 Change Py_HUGE_VAL to Py_INFINITY where I had missed/forgotten it · python/cpython@1e42249 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1e42249

Browse files
committed
Change Py_HUGE_VAL to Py_INFINITY where I had missed/forgotten it
1 parent fd39437 commit 1e42249

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/cmathmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ cmath_exec(PyObject *mod)
12261226
if (PyModule_AddObject(mod, "tau", PyFloat_FromDouble(Py_MATH_TAU)) < 0) {
12271227
return -1;
12281228
}
1229-
if (PyModule_AddObject(mod, "inf", PyFloat_FromDouble(Py_HUGE_VAL)) < 0) {
1229+
if (PyModule_AddObject(mod, "inf", PyFloat_FromDouble(Py_INFINITY)) < 0) {
12301230
return -1;
12311231
}
12321232

0 commit comments

Comments
 (0)
0