diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-11-22 01:30:47 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-11-22 01:30:47 (GMT) |
commit | f8facacf30a20b068c2a6fc62196c2335f150dbc (patch) | |
tree | 1c48fd6bb1e92fa9fac14771d458278ebb897d57 /Modules/_io/textio.c | |
parent | 9d3b93ba305e8a83bf1cec5146def2078e40b1a5 (diff) | |
download | cpython-f8facacf30a20b068c2a6fc62196c2335f150dbc.zip cpython-f8facacf30a20b068c2a6fc62196c2335f150dbc.tar.gz cpython-f8facacf30a20b068c2a6fc62196c2335f150dbc.tar.bz2 |
Fix compiler warnings
Diffstat (limited to 'Modules/_io/textio.c')
-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 07dad3a..890a356 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) |