diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-11-27 17:34:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-27 17:34:35 (GMT) |
commit | d4f9cf5545d6d8844e0726552ef2e366f5cc3abd (patch) | |
tree | 7aefae9861ee6b83652f6a352397b9dc145cc0d3 /Modules/_testbuffer.c | |
parent | 1005c84535191a72ebb7587d8c5636a065b7ed79 (diff) | |
download | cpython-d4f9cf5545d6d8844e0726552ef2e366f5cc3abd.zip cpython-d4f9cf5545d6d8844e0726552ef2e366f5cc3abd.tar.gz cpython-d4f9cf5545d6d8844e0726552ef2e366f5cc3abd.tar.bz2 |
bpo-33029: Fix signatures of getter and setter functions. (GH-10746)
Fix also return type for few other functions (clear, releasebuffer).
Diffstat (limited to 'Modules/_testbuffer.c')
-rw-r--r-- | Modules/_testbuffer.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Modules/_testbuffer.c b/Modules/_testbuffer.c index 4ff44f9..9d7b3e8 100644 --- a/Modules/_testbuffer.c +++ b/Modules/_testbuffer.c @@ -1531,7 +1531,7 @@ ndarray_getbuf(NDArrayObject *self, Py_buffer *view, int flags) return 0; } -static int +static void ndarray_releasebuf(NDArrayObject *self, Py_buffer *view) { if (!ND_IS_CONSUMER(self)) { @@ -1539,8 +1539,6 @@ ndarray_releasebuf(NDArrayObject *self, Py_buffer *view) if (--ndbuf->exports == 0 && ndbuf != self->head) ndbuf_delete(self, ndbuf); } - - return 0; } static PyBufferProcs ndarray_as_buffer = { |