Skip to content

Commit

Permalink
sizeof all types
Browse files Browse the repository at this point in the history
  • Loading branch information
devinrsmith committed Dec 27, 2023
1 parent 1a49a5b commit 9d2421c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/c/jpy_jobj.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ PyObject* JObj_FromType(JNIEnv* jenv, JPy_JType* type, jobject objectRef)

obj->objectRef = objectRef;

JPy_DIAG_PRINT(JPy_DIAG_F_MEM, "JObj_FromType: (Py_TYPE(&type->typeObj)->tp_basicsize=%d), (type->javaName=%s)\n", Py_TYPE(&type->typeObj)->tp_basicsize, type->javaName);

// For special treatment of primitive array refer to JType_InitSlots()
if (type->componentType != NULL && type->componentType->isPrimitive) {
Expand All @@ -67,7 +68,6 @@ PyObject* JObj_FromType(JNIEnv* jenv, JPy_JType* type, jobject objectRef)
array->buf = NULL;
} else if ((*jenv)->IsInstanceOf(jenv, objectRef, JPy_ByteBuffer_JClass)) {
JPy_JByteBufferWrapper *byteBufferWrapper;
// ->tp_nametype->typeObj->
JPy_DIAG_PRINT(JPy_DIAG_F_MEM, "JObj_FromType: (Py_TYPE(&type->typeObj)->tp_basicsize=%d), (type->javaName=%s) setting byteBufferWrapper->pyBuffer=NULL\n", Py_TYPE(&type->typeObj)->tp_basicsize, type->javaName);
byteBufferWrapper = (JPy_JByteBufferWrapper *) obj;
byteBufferWrapper->pyBuffer = NULL;
Expand Down

0 comments on commit 9d2421c

Please sign in to comment.