summaryrefslogtreecommitdiffstats
path: root/Doc/api
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-01-17 21:19:58 (GMT)
committerGeorg Brandl <georg@python.org>2007-01-17 21:19:58 (GMT)
commitb26b1c6d6b34d33ca62a66f9936d97f5340cdfda (patch)
tree61660dc21faba58e6657ee5512af83a573f79011 /Doc/api
parent45dc1f2fd3eb1364897b3e618309c12b5a31764c (diff)
downloadcpython-b26b1c6d6b34d33ca62a66f9936d97f5340cdfda.zip
cpython-b26b1c6d6b34d33ca62a66f9936d97f5340cdfda.tar.gz
cpython-b26b1c6d6b34d33ca62a66f9936d97f5340cdfda.tar.bz2
Bug #1629125: fix wrong data type (int -> Py_ssize_t) in PyDict_Next docs.
Diffstat (limited to 'Doc/api')
-rw-r--r--Doc/api/concrete.tex4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/api/concrete.tex b/Doc/api/concrete.tex
index 33b04d4..e2d3e52 100644
--- a/Doc/api/concrete.tex
+++ b/Doc/api/concrete.tex
@@ -2082,7 +2082,7 @@ format.
\begin{verbatim}
PyObject *key, *value;
-int pos = 0;
+Py_ssize_t pos = 0;
while (PyDict_Next(self->dict, &pos, &key, &value)) {
/* do something interesting with the values... */
@@ -2097,7 +2097,7 @@ while (PyDict_Next(self->dict, &pos, &key, &value)) {
\begin{verbatim}
PyObject *key, *value;
-int pos = 0;
+Py_ssize_t pos = 0;
while (PyDict_Next(self->dict, &pos, &key, &value)) {
int i = PyInt_AS_LONG(value) + 1;