Skip to content
Prev Previous commit
Next Next commit
Change Py_HUGE_VAL to Py_INFINITY where I had missed/forgotten it
  • Loading branch information
seberg committed May 8, 2023
commit 1e42249630acb7b512f3e5dbcf97a360b94be0b2
2 changes: 1 addition & 1 deletion Modules/cmathmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -1226,7 +1226,7 @@ cmath_exec(PyObject *mod)
if (PyModule_AddObject(mod, "tau", PyFloat_FromDouble(Py_MATH_TAU)) < 0) {
return -1;
}
if (PyModule_AddObject(mod, "inf", PyFloat_FromDouble(Py_HUGE_VAL)) < 0) {
if (PyModule_AddObject(mod, "inf", PyFloat_FromDouble(Py_INFINITY)) < 0) {
return -1;
}

Expand Down