projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7ac1d3
)
setup_confname_table(): Use size_t instead of int for an index when
author
Fred Drake
<fdrake@acm.org>
Thu, 30 Dec 1999 18:05:43 +0000
(18:05 +0000)
committer
Fred 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
patch
|
blob
|
history
diff --git
a/Modules/posixmodule.c
b/Modules/posixmodule.c
index 7f3b0e78af505c6725e21d8fa9186530f2e6ccad..7736ac39465ac31a3b9b87f827b68a18fef4612e 100644
(file)
--- a/
Modules/posixmodule.c
+++ b/
Modules/posixmodule.c
@@
-4316,7
+4316,7
@@
setup_confname_table(table, tablesize, tablename, moddict)
d = PyDict_New();
if (d != NULL) {
PyObject *o;
-
in
t i = 0;
+
size_
t i = 0;
for (; i < tablesize; ++i) {
o = PyInt_FromLong(table[i].value);