From: Rémi Lapeyre Date: Sun, 7 Jun 2020 07:05:33 +0000 (+0200) Subject: Fix return type of test helper function heapctypewithbuffer_releasebuffer() (GH-20685) X-Git-Tag: v3.10.0a1~700 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b8867e5d5aca33511942632b5f4e359b9245b2fa;p=thirdparty%2FPython%2Fcpython.git Fix return type of test helper function heapctypewithbuffer_releasebuffer() (GH-20685) --- 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);