From 2f08abafe77bc438e5bc9e8018354bf64035779a Mon Sep 17 00:00:00 2001
From: Patrick Monnerat <patrick@monnerat.net>
Date: Thu, 24 Jan 2019 14:27:09 +0100
Subject: [PATCH 6/6] Fix Python 2 INT_ASLONG function.
Ref: https://github.com/mate-desktop/python-caja/pull/34#issuecomment-457189545
---
src/caja-python-object.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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:
--
2.17.2