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>.
This commit is contained in:
Fred Drake 1999-12-30 18:05:43 +00:00
parent f7ac1d32f0
commit e1a79b9b42
1 changed files with 1 additions and 1 deletions

View 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);