Skip to content

Commit d2361b8

Browse files
committed
BUG: define SWIGPY_SLICEOBJECT
SWIG v 4.1.0+ use PyObject instead of PySliceObject after swig/swig@e683168 This adds the definition of SWIGPY_SLICEOBJECT.
1 parent 8598841 commit d2361b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Wrapping/Generators/Python/module_ext.i.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66

77
#if PY_VERSION_HEX >= 0x03020000
88
# define SWIGPY_SLICE_ARG(obj) ((PyObject*) (obj))
9+
# define SWIGPY_SLICEOBJECT PyObject
910
#else
1011
# define SWIGPY_SLICE_ARG(obj) ((PySliceObject*) (obj))
12+
# define SWIGPY_SLICEOBJECT PySliceObject
1113
#endif
1214
%}
1315

0 commit comments

Comments
 (0)