summaryrefslogtreecommitdiffstats
path: root/Modules/selectmodule.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-07-19 21:29:49 (GMT)
committerFred Drake <fdrake@acm.org>2001-07-19 21:29:49 (GMT)
commitdff3a37afdf36263d9d10daf35d8400bda0dbbb1 (patch)
tree33b0e9b4ecde0759e00f928161d24eff99009247 /Modules/selectmodule.c
parente5065290e79795c655d46475ae7c92ef225ab90e (diff)
downloadcpython-dff3a37afdf36263d9d10daf35d8400bda0dbbb1.zip
cpython-dff3a37afdf36263d9d10daf35d8400bda0dbbb1.tar.gz
cpython-dff3a37afdf36263d9d10daf35d8400bda0dbbb1.tar.bz2
Make more warnings go away on the SGI compiler.
This is part of SF patch #424992.
Diffstat (limited to 'Modules/selectmodule.c')
-rw-r--r--Modules/selectmodule.c6
1 files changed, 3 insertions, 3 deletions
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 @@ 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;