From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sun, 7 Jun 2020 07:28:03 +0000 (-0700) Subject: bpo-40724: Fix return type of test helper function heapctypewithbuffer_releasebuffer... X-Git-Tag: v3.9.0b2~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1d711f2e31e02b2e9cbe4f109bf79541f56c35a2;p=thirdparty%2FPython%2Fcpython.git bpo-40724: Fix return type of test helper function heapctypewithbuffer_releasebuffer() (GH-20685) (GH-20690) (cherry picked from commit b8867e5d5aca33511942632b5f4e359b9245b2fa) Co-authored-by: Rémi Lapeyre --- diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index d6a90b807d02..e0457ae5dfa5 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -6318,7 +6318,7 @@ heapctypewithbuffer_getbuffer(HeapCTypeWithBufferObject *self, Py_buffer *view, view, (PyObject*)self, (void *)self->buffer, 4, 1, flags); } -static int +static void heapctypewithbuffer_releasebuffer(HeapCTypeWithBufferObject *self, Py_buffer *view) { assert(view->obj == (void*) self);