summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--python/libxslt.c10
2 files changed, 12 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 81cdc3ed..3f329a4e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Wed Oct 24 17:41:08 PDT 2007 William Brack <wbrack@mmm.com.hk>
+
+ * python/libxslt.c: changed iterator argument for Py_Dict_Next
+ from int to ssize_t (seems Python docs are incorrect) to fix
+ x86_64 bug #489854.
+
Wed Oct 10 16:33:09 CEST 2007 Daniel Veillard <daniel@veillard.com>
* libexslt/date.c tests/exslt/date/datetime.1.out
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;