mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Issue #22117: Replace usage of _PyTime_ROUND_UP with _PyTime_ROUND_CEILING
All these functions only accept positive timeouts, so this change has no effect in practice.
This commit is contained in:
parent
bcdd777d3c
commit
869e1778c0
6 changed files with 22 additions and 18 deletions
|
|
@ -977,7 +977,8 @@ signal_sigtimedwait(PyObject *self, PyObject *args)
|
|||
&signals, &timeout_obj))
|
||||
return NULL;
|
||||
|
||||
if (_PyTime_FromSecondsObject(&timeout, timeout_obj, _PyTime_ROUND_UP) < 0)
|
||||
if (_PyTime_FromSecondsObject(&timeout,
|
||||
timeout_obj, _PyTime_ROUND_CEILING) < 0)
|
||||
return NULL;
|
||||
|
||||
if (timeout < 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue