diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-11-22 02:30:47 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-11-22 02:30:47 +0100 |
commit | c9b90f80843dd428b085c81e5c9ce9af75879e06 (patch) | |
tree | f5343c00ef6368083b6a0d20472263c106e0af45 /Modules/_io | |
parent | 05407577effc3f36d9b63c12b8e754eb86e8e3f6 (diff) | |
download | cpython-c9b90f80843dd428b085c81e5c9ce9af75879e06.tar.gz |
Fix compiler warnings
Diffstat (limited to 'Modules/_io')
-rw-r--r-- | Modules/_io/textio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_io/textio.c b/Modules/_io/textio.c index 07dad3a8ba..890a356cc0 100644 --- a/Modules/_io/textio.c +++ b/Modules/_io/textio.c @@ -1431,7 +1431,7 @@ textiowrapper_read_chunk(textio *self, Py_ssize_t size_hint) /* Read a chunk, decode it, and put the result in self._decoded_chars. */ if (size_hint > 0) { - size_hint = Py_MAX(self->b2cratio, 1.0) * size_hint; + size_hint = (Py_ssize_t)(Py_MAX(self->b2cratio, 1.0) * size_hint); } chunk_size = PyLong_FromSsize_t(Py_MAX(self->chunk_size, size_hint)); if (chunk_size == NULL) |