From 4f196fbaabfb106e1ceffaf425ff5beca7acab68 Mon Sep 17 00:00:00 2001 From: hai shi Date: Fri, 28 Jun 2019 02:03:07 +0800 Subject: [PATCH 1/2] Fix a small param type in allocation.rst --- Doc/c-api/allocation.rst | 2 +- Objects/dictobject.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/c-api/allocation.rst b/Doc/c-api/allocation.rst index 8e8a92003c5a3e..33b0c06a9ebc2e 100644 --- a/Doc/c-api/allocation.rst +++ b/Doc/c-api/allocation.rst @@ -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 diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 0cc14437500699..4b0aa936d85c4d 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -1427,7 +1427,7 @@ PyDict_GetItemWithError(PyObject *op, PyObject *key) { Py_ssize_t ix; Py_hash_t hash; - PyDictObject*mp = (PyDictObject *)op; + PyDictObject *mp = (PyDictObject *)op; PyObject *value; if (!PyDict_Check(op)) { From 8ad15124c96eeddff4ae47154f45c2bf1777eafd Mon Sep 17 00:00:00 2001 From: hai shi Date: Fri, 28 Jun 2019 11:01:25 +0800 Subject: [PATCH 2/2] remove unrelating patches --- Objects/dictobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 4b0aa936d85c4d..0cc14437500699 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -1427,7 +1427,7 @@ PyDict_GetItemWithError(PyObject *op, PyObject *key) { Py_ssize_t ix; Py_hash_t hash; - PyDictObject *mp = (PyDictObject *)op; + PyDictObject*mp = (PyDictObject *)op; PyObject *value; if (!PyDict_Check(op)) {