Skip to content

Commit

Permalink
Fix Python versions less than 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
atilaneves committed May 30, 2024
1 parent 2ee72a5 commit b65a6a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pynih/contract/source/contract/udt.d
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ package PyObject* simple_struct_func(PyObject* self, PyObject *args) nothrow @no
// either this of PyGetSetDef
static PyMemberDef[3] members;
members[0].name = cast(typeof(PyMemberDef.name)) &"the_int"[0];
members[0].type = Py_T_INT;
members[0].type = T_INT;
members[0].offset = MyType.i.offsetof;
members[1].name = cast(typeof(PyMemberDef.name)) &"the_double"[0];
members[1].type = Py_T_DOUBLE;
members[1].type = T_DOUBLE;
members[1].offset = MyType.d.offsetof;

static PyTypeObject type;
Expand Down

0 comments on commit b65a6a2

Please sign in to comment.