]> granicus.if.org Git - python/commitdiff
setup_confname_table(): Use size_t instead of int for an index when
authorFred Drake <fdrake@acm.org>
Thu, 30 Dec 1999 18:05:43 +0000 (18:05 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 30 Dec 1999 18:05:43 +0000 (18:05 +0000)
        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>.

Modules/posixmodule.c

index 7f3b0e78af505c6725e21d8fa9186530f2e6ccad..7736ac39465ac31a3b9b87f827b68a18fef4612e 100644 (file)
@@ -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);