summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-07-19 21:49:38 (GMT)
committerFred Drake <fdrake@acm.org>2001-07-19 21:49:38 (GMT)
commit1bc8fab0e770071c8476a92fa0da5c1daa3ad4a1 (patch)
tree425b3fa3df22e4cbb7884c00b498f1395e25bea9 /Objects
parentdff3a37afdf36263d9d10daf35d8400bda0dbbb1 (diff)
downloadcpython-1bc8fab0e770071c8476a92fa0da5c1daa3ad4a1.zip
cpython-1bc8fab0e770071c8476a92fa0da5c1daa3ad4a1.tar.gz
cpython-1bc8fab0e770071c8476a92fa0da5c1daa3ad4a1.tar.bz2
Kill more warnings from the SGI compiler.
Part of SF patch #434992.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/fileobject.c2
-rw-r--r--Objects/intobject.c2
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);
}