commit | f8facacf30a20b068c2a6fc62196c2335f150dbc | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Tue Nov 22 02:30:47 2011 +0100 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Tue Nov 22 02:30:47 2011 +0100 |
tree | 1c48fd6bb1e92fa9fac14771d458278ebb897d57 | |
parent | 9d3b93ba305e8a83bf1cec5146def2078e40b1a5 [diff] |
Fix compiler warnings
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 @@ /* 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)