diff options
-rw-r--r-- | Objects/fileobject.c | 2 | ||||
-rw-r--r-- | Objects/intobject.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c index c4b10dc..18d15e1 100644 --- a/Objects/fileobject.c +++ b/Objects/fileobject.c @@ -473,7 +473,7 @@ static size_t new_buffersize(PyFileObject *f, size_t currentsize) { #ifdef HAVE_FSTAT - long pos, end; + off_t pos, end; struct stat st; if (fstat(fileno(f->f_fp), &st) == 0) { end = st.st_size; diff --git a/Objects/intobject.c b/Objects/intobject.c index b0ed82a..282da20 100644 --- a/Objects/intobject.c +++ b/Objects/intobject.c @@ -645,7 +645,7 @@ int_lshift(PyIntObject *v, PyIntObject *w) if (b >= LONG_BIT) { return PyInt_FromLong(0L); } - a = (unsigned long)a << b; + a = (long)((unsigned long)a << b); return PyInt_FromLong(a); } |