Make more warnings go away on the SGI compiler.
This is part of SF patch #424992.
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c
index c6e4b86..c92dc7f 100644
--- a/Modules/selectmodule.c
+++ b/Modules/selectmodule.c
@@ -332,7 +332,7 @@
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 @@
}
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;