Kaydet (Commit) 1bc8fab0 authored tarafından Fred Drake's avatar Fred Drake

Kill more warnings from the SGI compiler.

Part of SF patch #434992.
üst dff3a37a
......@@ -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;
......
......@@ -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);
}
......
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