summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: