summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-12-30 18:05:43 (GMT)
committerFred Drake <fdrake@acm.org>1999-12-30 18:05:43 (GMT)
commite1a79b9b424cb7e4362b0d4bda08396ebe9cab7a (patch)
treeaf517aaf32a342a2f6f8ae40e5205eb1a589a3e6 /Modules/posixmodule.c
parentf7ac1d32f04cdda7d8b6200daa8eedf89aba1290 (diff)
downloadcpython-e1a79b9b424cb7e4362b0d4bda08396ebe9cab7a.zip
cpython-e1a79b9b424cb7e4362b0d4bda08396ebe9cab7a.tar.gz
cpython-e1a79b9b424cb7e4362b0d4bda08396ebe9cab7a.tar.bz2
setup_confname_table(): Use size_t instead of int for an index when
building the dicts used to inform the user about the defined constants when using the *conf*() APIs. Thanks to Mark Hammond <mhammond@skippinet.com.au>.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 7f3b0e7..7736ac3 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -4316,7 +4316,7 @@ setup_confname_table(table, tablesize, tablename, moddict)
d = PyDict_New();
if (d != NULL) {
PyObject *o;
- int i = 0;
+ size_t i = 0;
for (; i < tablesize; ++i) {
o = PyInt_FromLong(table[i].value);