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 | |
parent | 9d3b93ba305e8a83bf1cec5146def2078e40b1a5 (diff) | |
download | cpython-f8facacf30a20b068c2a6fc62196c2335f150dbc.zip cpython-f8facacf30a20b068c2a6fc62196c2335f150dbc.tar.gz cpython-f8facacf30a20b068c2a6fc62196c2335f150dbc.tar.bz2 |
Fix compiler warnings
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_io/textio.c | 2 | ||||
-rw-r--r-- | Modules/posixmodule.c | 2 |
2 files changed, 2 insertions, 2 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) diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 975cd9a..fe92491 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -7756,9 +7756,9 @@ posix_putenv(PyObject *self, PyObject *args) PyObject *os1, *os2; char *s1, *s2; char *newenv; + size_t len; #endif PyObject *newstr = NULL; - size_t len; #ifdef MS_WINDOWS if (!PyArg_ParseTuple(args, |