From: Fred Drake Date: Thu, 19 Jul 2001 21:49:38 +0000 (+0000) Subject: Kill more warnings from the SGI compiler. X-Git-Tag: v2.2a3~1035 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1bc8fab0e770071c8476a92fa0da5c1daa3ad4a1;p=thirdparty%2FPython%2Fcpython.git Kill more warnings from the SGI compiler. Part of SF patch #434992. --- diff --git a/Objects/fileobject.c b/Objects/fileobject.c index c4b10dcd3e1b..18d15e1ae209 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 b0ed82a785e2..282da201b82e 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); }