Skip to content

Commit 0cbab89

Browse files
author
denfromufa
committed
Update interop.cs
1 parent ba6c09a commit 0cbab89

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/runtime/interop.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,11 @@ public static int magic() {
201201
public static int tp_setattr = 0;
202202

203203
#if (PYTHON35)
204-
public static int tp_as_async = 0; /* tp_reserved, tp_compare in Python 3 */
204+
public static int tp_as_async = 0;
205+
#else if (PYTHON32 || PYTHON33 || PYTHON34)
206+
public static int tp_reserved = 0;
205207
#else
206-
public static int tp_reserved = 0; /* tp_reserved, tp_compare in Python 3 */
208+
public static int tp_compare = 0;
207209
#endif
208210
public static int tp_repr = 0;
209211

0 commit comments

Comments
 (0)