From: Steve Dower Date: Sat, 23 May 2015 15:59:25 +0000 (-0700) Subject: Fixes cast warning in bufferedio.c X-Git-Tag: v3.5.0b1~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6baa0f98056cb9d48b8c497017c71482d4b208ff;p=python Fixes cast warning in bufferedio.c --- diff --git a/Modules/_io/bufferedio.c b/Modules/_io/bufferedio.c index 23ba3df866..29e000bde4 100644 --- a/Modules/_io/bufferedio.c +++ b/Modules/_io/bufferedio.c @@ -297,7 +297,7 @@ _enter_buffered_busy(buffered *self) * Note that non-daemon threads have already exited here, so this * shouldn't affect carefully written threaded I/O code. */ - st = PyThread_acquire_lock_timed(self->lock, 1e6, 0); + st = PyThread_acquire_lock_timed(self->lock, (PY_TIMEOUT_T)1e6, 0); } Py_END_ALLOW_THREADS if (relax_locking && st != PY_LOCK_ACQUIRED) {