Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
corona10 committed Oct 3, 2024
1 parent 68d2336 commit d629976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/parking_lot.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ _PySemaphore_PlatformWait(_PySemaphore *sema, PyTime_t timeout)
else {
PyTime_t div = _PyTime_AsMilliseconds(timeout, _PyTime_ROUND_TIMEOUT);
// Prevent overflow with clamping the result
if ((PyTime_t)PY_DWORD_MAX * 1000000 < div) {
if ((PyTime_t)PY_DWORD_MAX < div) {
millis = PY_DWORD_MAX;
}
else {
Expand Down

0 comments on commit d629976

Please sign in to comment.