From e1a79b9b424cb7e4362b0d4bda08396ebe9cab7a Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Thu, 30 Dec 1999 18:05:43 +0000 Subject: 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 . --- Modules/posixmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v0.12