From: Fred Drake Date: Thu, 30 Dec 1999 18:05:43 +0000 (+0000) Subject: setup_confname_table(): Use size_t instead of int for an index when X-Git-Tag: v1.6a1~567 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e1a79b9b424cb7e4362b0d4bda08396ebe9cab7a;p=thirdparty%2FPython%2Fcpython.git 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 . --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 7f3b0e78af50..7736ac39465a 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);