Skip to content
Prev Previous commit
Next Next commit
One more Py_HUGE_VAL -> Py_INFINITY replacement
  • Loading branch information
mdickinson committed May 8, 2023
commit e15236de1eda28486adb69518638cd6e773ad915
2 changes: 1 addition & 1 deletion Modules/mathmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ m_tgamma(double x)
if (x == 0.0) {
errno = EDOM;
/* tgamma(+-0.0) = +-inf, divide-by-zero */
return copysign(Py_HUGE_VAL, x);
return copysign(Py_INFINITY, x);
}

/* integer arguments */
Expand Down