mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Fix build of python bindings on Python 2.4
The PyDict_Next method on Python <= 2.4 used 'int' instead of "Py_ssize_t" for the 'pos' parameter Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
442eb2ba29
commit
6e09e7de89
@ -152,7 +152,11 @@ setPyVirTypedParameter(PyObject *info,
|
|||||||
const virTypedParameterPtr params, int nparams)
|
const virTypedParameterPtr params, int nparams)
|
||||||
{
|
{
|
||||||
PyObject *key, *value;
|
PyObject *key, *value;
|
||||||
|
#if PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION <= 4
|
||||||
|
int pos = 0;
|
||||||
|
#else
|
||||||
Py_ssize_t pos = 0;
|
Py_ssize_t pos = 0;
|
||||||
|
#endif
|
||||||
virTypedParameterPtr temp = NULL, ret = NULL;
|
virTypedParameterPtr temp = NULL, ret = NULL;
|
||||||
Py_ssize_t size;
|
Py_ssize_t size;
|
||||||
int i;
|
int i;
|
||||||
|
Loading…
Reference in New Issue
Block a user