Skip to content

Commit d349766

Browse files
monneratvkareh
authored andcommitted
Fix Python 2 INT_ASLONG function.
Ref: #34 (comment)
1 parent 7c4ff1a commit d349766

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/caja-python-object.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ static GObjectClass *parent_class;
5555
#define STRING_FROMSTRING(str) PyString_FromString(str)
5656
#define STRING_ASSTRING(obj) PyString_AsString(obj)
5757
#define INT_CHECK(obj) PyInt_Check(obj)
58-
#define INT_ASLONG(obj) PyInt(obj)
58+
#define INT_ASLONG(obj) PyInt_AsLong(obj)
5959
#endif
6060

6161
/* These macros assumes the following things:

0 commit comments

Comments
 (0)