Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion Doc/c-api/allocation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Allocating Objects on the Heap
improving the memory management efficiency.


.. c:function:: void PyObject_Del(PyObject *op)
.. c:function:: void PyObject_Del(void *op)

Releases memory allocated to an object using :c:func:`PyObject_New` or
:c:func:`PyObject_NewVar`. This is normally called from the
Expand Down
2 changes: 1 addition & 1 deletion Objects/dictobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -1427,7 +1427,7 @@ PyDict_GetItemWithError(PyObject *op, PyObject *key)
{
Py_ssize_t ix;
Py_hash_t hash;
PyDictObject*mp = (PyDictObject *)op;
Comment thread
methane marked this conversation as resolved.
PyDictObject *mp = (PyDictObject *)op;
PyObject *value;

if (!PyDict_Check(op)) {
Expand Down