[Python-checkins] cpython: Fixes cast warning in bufferedio.c

steve.dower python-checkins at python.org
Sat May 23 18:00:08 CEST 2015


https://hg.python.org/cpython/rev/366e8aa65902
changeset:   96237:366e8aa65902
user:        Steve Dower <steve.dower at microsoft.com>
date:        Sat May 23 08:59:25 2015 -0700
summary:
  Fixes cast warning in bufferedio.c

files:
  Modules/_io/bufferedio.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Modules/_io/bufferedio.c b/Modules/_io/bufferedio.c
--- a/Modules/_io/bufferedio.c
+++ b/Modules/_io/bufferedio.c
@@ -297,7 +297,7 @@
          * 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) {

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list