subvertpy-users team mailing list archive
-
subvertpy-users team
-
Mailing list archive
-
Message #00010
[PATCH] Fix compilation against Python 2.5
# HG changeset patch
# User Dan Villiom Podlaski Christiansen <danchr@xxxxxxxxx>
# Date 1280048617 -7200
# Node ID a15dd4b8c5fce08e5bc60bf232522cfa9e9a6ae0
# Parent 93664f3669a62178305fee40d41e49d8a6c7c1e3
Fix compilation against Python 2.5.
diff --git a/subvertpy/wc.c b/subvertpy/wc.c
--- a/subvertpy/wc.c
+++ b/subvertpy/wc.c
@@ -165,7 +165,7 @@ static svn_error_t *py_wc_found_entry(co
{
PyObject *fn, *ret;
PyGILState_STATE state = PyGILState_Ensure();
- if (PyTuple_Check(walk_baton)) {
+ if (PyTuple_Check((PyObject *)walk_baton)) {
fn = (PyObject *)PyTuple_GET_ITEM(walk_baton, 0);
} else {
fn = walk_baton;
Follow ups