summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Monnerat <[email protected]>2019-01-24 14:27:09 +0100
committerVictor Kareh <[email protected]>2019-01-30 15:59:28 -0500
commitd3497665306dc69aad63b72d7c4ca1d8d17ea3bd (patch)
treed011da6009a928c3b1a74ffd319752d3224f1441
parent7c4ff1a2c72b9a4f2a84a2e10c7ea0450dbf5227 (diff)
downloadpython-caja-d3497665306dc69aad63b72d7c4ca1d8d17ea3bd.tar.bz2
python-caja-d3497665306dc69aad63b72d7c4ca1d8d17ea3bd.tar.xz
Fix Python 2 INT_ASLONG function.
Ref: https://github.com/mate-desktop/python-caja/pull/34#issuecomment-457189545
-rw-r--r--src/caja-python-object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/caja-python-object.c b/src/caja-python-object.c
index d3d46fc..e2bdf85 100644
--- a/src/caja-python-object.c
+++ b/src/caja-python-object.c
@@ -55,7 +55,7 @@ static GObjectClass *parent_class;
#define STRING_FROMSTRING(str) PyString_FromString(str)
#define STRING_ASSTRING(obj) PyString_AsString(obj)
#define INT_CHECK(obj) PyInt_Check(obj)
-#define INT_ASLONG(obj) PyInt(obj)
+#define INT_ASLONG(obj) PyInt_AsLong(obj)
#endif
/* These macros assumes the following things: