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:
parent
f7ac1d32f0
commit
e1a79b9b42
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue