summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorWilliam M. Brack <wbrack@src.gnome.org>2007-10-25 00:43:22 +0000
committerWilliam M. Brack <wbrack@src.gnome.org>2007-10-25 00:43:22 +0000
commitf9876fd931a9543251456b5dbd464546816156a1 (patch)
tree3131d6e3b99000a212a9f5b834abcda4f0d5079e /python
parentc21fe206b08ec948a70edcd24ba5030d7634fab9 (diff)
downloadlibxslt-f9876fd931a9543251456b5dbd464546816156a1.tar.gz
libxslt-f9876fd931a9543251456b5dbd464546816156a1.tar.bz2
libxslt-f9876fd931a9543251456b5dbd464546816156a1.zip
changed iterator argument for Py_Dict_Next from int to ssize_t to fix
* python/libxslt.c: changed iterator argument for Py_Dict_Next from int to ssize_t to fix x86_64 bug #489854 svn path=/trunk/; revision=1447
Diffstat (limited to 'python')
-rw-r--r--python/libxslt.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/python/libxslt.c b/python/libxslt.c
index 32bec4c6..1cf573dc 100644
--- a/python/libxslt.c
+++ b/python/libxslt.c
@@ -666,7 +666,8 @@ libxslt_xsltApplyStylesheetUser(PyObject *self ATTRIBUTE_UNUSED, PyObject *args)
PyObject *pyobj_params;
PyObject *pyobj_transformCtxt;
const char **params = NULL;
- int len = 0, i = 0, j;
+ int len = 0, i, j;
+ ssize_t ppos = 0;
PyObject *name;
PyObject *value;
@@ -686,7 +687,7 @@ libxslt_xsltApplyStylesheetUser(PyObject *self ATTRIBUTE_UNUSED, PyObject *args)
return(Py_None);
}
j = 0;
- while (PyDict_Next(pyobj_params, &i, &name, &value)) {
+ while (PyDict_Next(pyobj_params, &ppos, &name, &value)) {
const char *tmp;
int size;
@@ -740,7 +741,8 @@ libxslt_xsltApplyStylesheet(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
PyObject *pyobj_doc;
PyObject *pyobj_params;
const char **params = NULL;
- int len = 0, i = 0, j, params_size;
+ int len = 0, i, j, params_size;
+ ssize_t ppos = 0;
PyObject *name;
PyObject *value;
@@ -761,7 +763,7 @@ libxslt_xsltApplyStylesheet(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
}
memset(params, 0, params_size);
j = 0;
- while (PyDict_Next(pyobj_params, &i, &name, &value)) {
+ while (PyDict_Next(pyobj_params, &ppos, &name, &value)) {
const char *tmp;
int size;