Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix type warning
  • Loading branch information
encukou committed May 31, 2022
commit 6001a3322fc287fe4f4c1dd6a86e25c1d4cbc7d0
2 changes: 1 addition & 1 deletion Objects/typeobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -3542,7 +3542,7 @@ PyType_FromMetaclass(PyTypeObject *metaclass, PyObject *module,
type->tp_as_buffer = &res->as_buffer;

/* Set tp_base and tp_bases */
type->tp_base = Py_NewRef(base);
type->tp_base = (PyObject *)Py_NewRef(base);
type->tp_bases = bases;
bases = NULL; // We give our reference to bases to the type

Expand Down