mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Make more warnings go away on the SGI compiler.
This is part of SF patch #424992.
This commit is contained in:
parent
e5065290e7
commit
dff3a37afd
4 changed files with 6 additions and 11 deletions
|
|
@ -332,7 +332,7 @@ staticforward PyTypeObject poll_Type;
|
|||
static int
|
||||
update_ufd_array(pollObject *self)
|
||||
{
|
||||
int i, j, pos;
|
||||
int i, pos;
|
||||
PyObject *key, *value;
|
||||
|
||||
self->ufd_len = PyDict_Size(self->dict);
|
||||
|
|
@ -343,9 +343,9 @@ update_ufd_array(pollObject *self)
|
|||
}
|
||||
|
||||
i = pos = 0;
|
||||
while ((j = PyDict_Next(self->dict, &pos, &key, &value))) {
|
||||
while (PyDict_Next(self->dict, &pos, &key, &value)) {
|
||||
self->ufds[i].fd = PyInt_AsLong(key);
|
||||
self->ufds[i].events = PyInt_AsLong(value);
|
||||
self->ufds[i].events = (short)PyInt_AsLong(value);
|
||||
i++;
|
||||
}
|
||||
self->ufd_uptodate = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue