mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue