Commit 221fa43f authored by Fred Drake's avatar Fred Drake

Kill more warnings from the SGI compiler.

Part of SF patch #434992.
parent 81df8a16
...@@ -473,7 +473,7 @@ static size_t ...@@ -473,7 +473,7 @@ static size_t
new_buffersize(PyFileObject *f, size_t currentsize) new_buffersize(PyFileObject *f, size_t currentsize)
{ {
#ifdef HAVE_FSTAT #ifdef HAVE_FSTAT
long pos, end; off_t pos, end;
struct stat st; struct stat st;
if (fstat(fileno(f->f_fp), &st) == 0) { if (fstat(fileno(f->f_fp), &st) == 0) {
end = st.st_size; end = st.st_size;
......
...@@ -645,7 +645,7 @@ int_lshift(PyIntObject *v, PyIntObject *w) ...@@ -645,7 +645,7 @@ int_lshift(PyIntObject *v, PyIntObject *w)
if (b >= LONG_BIT) { if (b >= LONG_BIT) {
return PyInt_FromLong(0L); return PyInt_FromLong(0L);
} }
a = (unsigned long)a << b; a = (long)((unsigned long)a << b);
return PyInt_FromLong(a); return PyInt_FromLong(a);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment