From 1bc8fab0e770071c8476a92fa0da5c1daa3ad4a1 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Thu, 19 Jul 2001 21:49:38 +0000 Subject: Kill more warnings from the SGI compiler. Part of SF patch #434992. --- Objects/fileobject.c | 2 +- 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); } -- cgit v0.12