Kill more warnings from the SGI compiler.

Part of SF patch #434992.
This commit is contained in:
Fred Drake 2001-07-19 21:49:38 +00:00
parent dff3a37afd
commit 1bc8fab0e7
2 changed files with 2 additions and 2 deletions

View 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;

View 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);
}