mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Remove warnings from the SGI compiler.
This is part of SF patch #434992.
This commit is contained in:
parent
78bdb9bc46
commit
0368bc44e8
2 changed files with 4 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue