1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-07-01 13:41:39 +03:00

python/libxslt.c: Replace ssize_t with Py_ssize_t

This ensures that we have the ssize_t that we want on all compilers supported
by Python, since ssize_t is not supported on Visual Studio, for instance, since
it is a POSIX type.
This commit is contained in:
Chun-wei Fan
2022-03-09 12:06:51 +08:00
parent d994c6132b
commit 966296cb9b

View File

@ -692,7 +692,7 @@ libxslt_xsltApplyStylesheetUser(PyObject *self ATTRIBUTE_UNUSED, PyObject *args)
PyObject *pyobj_transformCtxt;
const char **params = NULL;
int len = 0, i, j;
ssize_t ppos = 0;
Py_ssize_t ppos = 0;
PyObject *name;
PyObject *value;
@ -780,7 +780,7 @@ libxslt_xsltApplyStylesheet(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
PyObject *pyobj_params;
const char **params = NULL;
int len = 0, i, j, params_size;
ssize_t ppos = 0;
Py_ssize_t ppos = 0;
PyObject *name;
PyObject *value;