Skip to content

Commit

Permalink
Issue #9 try Py_SET_TYPE with 2 arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
thompson318 committed Jan 18, 2024
1 parent 15a9095 commit 629d73c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-ver: [3.7, 3.8, 3.9, '3.10', '3.11']
python-ver: ['3.11']
os: [ubuntu-latest, windows-latest, macos-latest]
experimental: [false]

Expand Down
4 changes: 2 additions & 2 deletions ndicapimodule.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1748,8 +1748,8 @@ ndicapiExport MOD_INIT(ndicapy)
PyNdicapiType.ob_type = &PyType_Type;
PyNDIBitfield_Type.ob_type = &PyType_Type;
#else
Py_SET_TYPE(&PyNdicapiType) = &PyType_Type;
Py_SET_TYPE(&PyNDIBitfield_Type) = &PyType_Type;
Py_SET_TYPE(&PyNdicapiType, &PyType_Type);
Py_SET_TYPE(&PyNDIBitfield_Type, &PyType_Type);
#endif

MOD_DEF(module, "ndicapy", NULL, NdicapiMethods);
Expand Down

0 comments on commit 629d73c

Please sign in to comment.