summaryrefslogtreecommitdiffstats
path: root/Modules/signalmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-03-30 01:49:14 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-03-30 01:49:14 (GMT)
commit869e1778c0bcfc0928701c6ae0703934359d036b (patch)
tree231b2e09d453cca2ce5bf462ffb91f0f7303f3c0 /Modules/signalmodule.c
parentbcdd777d3c01a6db3b4357922663624ef617e65a (diff)
downloadcpython-869e1778c0bcfc0928701c6ae0703934359d036b.zip
cpython-869e1778c0bcfc0928701c6ae0703934359d036b.tar.gz
cpython-869e1778c0bcfc0928701c6ae0703934359d036b.tar.bz2
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.
Diffstat (limited to 'Modules/signalmodule.c')
-rw-r--r--Modules/signalmodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c
index f3b2e29..1b3589d 100644
--- a/Modules/signalmodule.c
+++ b/Modules/signalmodule.c
@@ -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) {