mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-08-05 23:35:48 +03:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user