# HG changeset patch # User Chun-wei Fan <fanchunwei@src.gnome.org> # Date 1646798811 -28800 # Wed Mar 09 12:06:51 2022 +0800 # Node ID b5eaa60d14766a859cc6d1c9e4d10cb98911c5e7 # Parent 9001c7f5542b7f9c44b14bb179167440fd5dbbef 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. diff --git a/python/libxslt.c b/python/libxslt.c --- a/python/libxslt.c +++ b/python/libxslt.c @@ -692,7 +692,7 @@ 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 @@ 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;