]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix return type of test helper function heapctypewithbuffer_releasebuffer() (GH-20685)
authorRémi Lapeyre <remi.lapeyre@lenstra.fr>
Sun, 7 Jun 2020 07:05:33 +0000 (09:05 +0200)
committerGitHub <noreply@github.com>
Sun, 7 Jun 2020 07:05:33 +0000 (09:05 +0200)
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);