mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +00:00
gh-110850: Replace private _PyTime_MAX with public PyTime_MAX (#115751)
Remove references to the old names _PyTime_MIN and _PyTime_MAX, now that PyTime_MIN and PyTime_MAX are public. Replace also _PyTime_MIN with PyTime_MIN.
This commit is contained in:
parent
1235e84276
commit
77430b6a32
3 changed files with 4 additions and 8 deletions
|
@ -1948,7 +1948,7 @@ thread_module_exec(PyObject *module)
|
|||
|
||||
// TIMEOUT_MAX
|
||||
double timeout_max = (double)PY_TIMEOUT_MAX * 1e-6;
|
||||
double time_max = PyTime_AsSecondsDouble(_PyTime_MAX);
|
||||
double time_max = PyTime_AsSecondsDouble(PyTime_MAX);
|
||||
timeout_max = Py_MIN(timeout_max, time_max);
|
||||
// Round towards minus infinity
|
||||
timeout_max = floor(timeout_max);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue