Skip to content

Commit 0ebe0de

Browse files
author
Christopher Doris
committed
Clean up PyType_Spec creation
- Remove unnecessary itemsize field (defaults to 0) - Remove unnecessary Cint conversion for basicsize (happens automatically)
1 parent 36c1048 commit 0ebe0de

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/JlWrap/C.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,7 @@ function init_c()
346346
# Create PyType_Spec
347347
_pyjlbase_spec[] = C.PyType_Spec(
348348
name = pointer(_pyjlbase_name),
349-
basicsize = Cint(sizeof(PyJuliaValueObject)),
350-
itemsize = Cint(0),
349+
basicsize = sizeof(PyJuliaValueObject),
351350
flags = C.Py_TPFLAGS_BASETYPE | C.Py_TPFLAGS_HAVE_VERSION_TAG,
352351
slots = pointer(_pyjlbase_slots),
353352
)

0 commit comments

Comments
 (0)