Skip to content

Commit 3f7ccda

Browse files
committed
Fix different direction of rounding
1 parent 8567058 commit 3f7ccda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/selectmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ select_select(PyObject *self, PyObject *args)
221221
return NULL;
222222
}
223223

224-
if (_PyTime_AsTimeval(timeout, &tv, _PyTime_ROUND_CEILING) == -1)
224+
if (_PyTime_AsTimeval(timeout, &tv, _PyTime_ROUND_UP) == -1)
225225
return NULL;
226226
if (tv.tv_sec < 0) {
227227
PyErr_SetString(PyExc_ValueError, "timeout must be non-negative");

0 commit comments

Comments
 (0)