Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix test
  • Loading branch information
vstinner committed Sep 30, 2021
commit d8e1989e23c3250e358e44a93fa5e79deeab0f00
2 changes: 1 addition & 1 deletion Python/thread_pthread.h
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ PyThread_acquire_lock_timed(PyThread_type_lock lock, PY_TIMEOUT_T microseconds,
_PyTime_t timeout;
if (microseconds >= 0) {
_PyTime_t ns;
if (microseconds < _PyTime_MAX / 1000) {
if (microseconds <= _PyTime_MAX / 1000) {
ns = microseconds * 1000;
}
else {
Expand Down