mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
gh-110850: Use public PyTime functions (#115746)
Replace private _PyTime functions with public PyTime functions. random_seed_time_pid() now reports errors to its caller.
This commit is contained in:
parent
52d1477566
commit
145bc2d638
12 changed files with 39 additions and 55 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