Kaydet (Commit) e1a79b9b authored tarafından Fred Drake's avatar Fred Drake

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>.
üst f7ac1d32
...@@ -4316,7 +4316,7 @@ setup_confname_table(table, tablesize, tablename, moddict) ...@@ -4316,7 +4316,7 @@ setup_confname_table(table, tablesize, tablename, moddict)
d = PyDict_New(); d = PyDict_New();
if (d != NULL) { if (d != NULL) {
PyObject *o; PyObject *o;
int i = 0; size_t i = 0;
for (; i < tablesize; ++i) { for (; i < tablesize; ++i) {
o = PyInt_FromLong(table[i].value); o = PyInt_FromLong(table[i].value);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment