8000 Update Objects/typeobject.c · python/cpython@7131774 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7131774

Browse files
colesburympage
andauthored
Update Objects/typeobject.c
Co-authored-by: mpage <mpage@cs.stanford.edu>
1 parent 78e40c8 commit 7131774

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/typeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2253,7 +2253,7 @@ _PyType_AllocNoTrack(PyTypeObject *type, Py_ssize_t nitems)
22532253
}
22542254
// Zero out the object after the PyObject header. The header fields are
22552255
// initialized by _PyObject_Init[Var]().
2256-
memset((char *)obj + sizeof(PyObject), '\0', size - sizeof(PyObject));
2256+
memset((char *)obj + sizeof(PyObject), 0, size - sizeof(PyObject));
22572257

22582258
if (type->tp_itemsize == 0) {
22592259
_PyObject_Init(obj, type);

0 commit comments

Comments
 (0)
0