Skip to content

Commit

Permalink
Merge branch 'PlusToolkit:master' into 2github-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
thompson318 committed Feb 22, 2024
2 parents 83209d9 + a8eadfc commit 300a23f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ndicapimodule.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@
#define PyString_AsString PyUnicode_AsUTF8
#define PyIntObject PyLongObject
//#define PY_INT_OBJECT_OB_IVAL(ob) PyLong_AsLong((PyObject*)(ob))
#define PY_INT_OBJECT_OB_IVAL(ob) ob->ob_digit[0]
#if PY_MINOR_VERSION < 12
#define PY_INT_OBJECT_OB_IVAL(ob) ob->ob_digit[0]
#else
#define PY_INT_OBJECT_OB_IVAL(ob) ob->long_value.ob_digit[0]
#endif
#define cmpfunc PyAsyncMethods*
#else
#define MOD_ERROR_VAL
Expand Down

0 comments on commit 300a23f

Please sign in to comment.