Remove warnings from the SGI compiler.

This is part of SF patch #434992.
This commit is contained in:
Fred Drake 2001-07-19 20:48:32 +00:00
parent 78bdb9bc46
commit 0368bc44e8
2 changed files with 4 additions and 7 deletions

View file

@ -1215,7 +1215,7 @@ posix_umask(PyObject *self, PyObject *args)
int i;
if (!PyArg_ParseTuple(args, "i:umask", &i))
return NULL;
i = umask(i);
i = (int)umask(i);
if (i < 0)
return posix_error();
return PyInt_FromLong((long)i);