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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e1a79b9b424cb7e4362b0d4bda08396ebe9cab7a;p=python 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 7f3b0e78af..7736ac3946 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);