]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Kill more warnings from the SGI compiler.
authorFred Drake <fdrake@acm.org>
Thu, 19 Jul 2001 21:49:38 +0000 (21:49 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 19 Jul 2001 21:49:38 +0000 (21:49 +0000)
Part of SF patch #434992.

Objects/fileobject.c
Objects/intobject.c

index c4b10dcd3e1b7b51ae6309ab2f75631f59685574..18d15e1ae209fa95e25d827413be7e8d88f7cb69 100644 (file)
@@ -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;
index b0ed82a785e25f70a4fb185add19e14f34861675..282da201b82ea075b2f0935b739b2ffe0b6bbf56 100644 (file)
@@ -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);
 }