From d3497665306dc69aad63b72d7c4ca1d8d17ea3bd Mon Sep 17 00:00:00 2001 From: Patrick Monnerat Date: Thu, 24 Jan 2019 14:27:09 +0100 Subject: 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: -- cgit v1.2.1