mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
bpo-33029: Fix signatures of getter and setter functions. (GH-10746)
Fix also return type for few other functions (clear, releasebuffer).
This commit is contained in:
parent
1005c84535
commit
d4f9cf5545
25 changed files with 128 additions and 122 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue