]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40724: Fix return type of test helper function heapctypewithbuffer_releasebuffer...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 7 Jun 2020 07:28:03 +0000 (00:28 -0700)
committerGitHub <noreply@github.com>
Sun, 7 Jun 2020 07:28:03 +0000 (09:28 +0200)
(cherry picked from commit b8867e5d5aca33511942632b5f4e359b9245b2fa)
Co-authored-by: Rémi Lapeyre <remi.lapeyre@lenstra.fr>
Modules/_testcapimodule.c

index d6a90b807d0267e84d13e3f70c1a7fefd1ab10e8..e0457ae5dfa55d4f7694e877671fb172d546d9a2 100644 (file)
@@ -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);