Skip to content

Commit e5be15b

Browse files
committed
Fix incorrect type for ob_size
1 parent f9f08a0 commit e5be15b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/TypeManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ internal static PyType AllocateTypeObject(string name, PyType metatype)
587587
// Clr type would not use __slots__,
588588
// and the PyMemberDef after PyHeapTypeObject will have other uses(e.g. type handle),
589589
// thus set the ob_size to 0 for avoiding slots iterations.
590-
Util.WriteIntPtr(type, TypeOffset.ob_size, IntPtr.Zero);
590+
Util.WriteCLong(type, TypeOffset.ob_size, 0);
591591

592592
// Cheat a little: we'll set tp_name to the internal char * of
593593
// the Python version of the type name - otherwise we'd have to

0 commit comments

Comments
 (0)