diff options
author | Patrick Monnerat <[email protected]> | 2019-01-24 14:27:09 +0100 |
---|---|---|
committer | Victor Kareh <[email protected]> | 2019-01-30 15:59:28 -0500 |
commit | d3497665306dc69aad63b72d7c4ca1d8d17ea3bd (patch) | |
tree | d011da6009a928c3b1a74ffd319752d3224f1441 /src | |
parent | 7c4ff1a2c72b9a4f2a84a2e10c7ea0450dbf5227 (diff) | |
download | python-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
Diffstat (limited to 'src')
-rw-r--r-- | src/caja-python-object.c | 2 |
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: |