mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 18:56:17 +03:00
Fix _get_pushes_fd and _get_pulls_fd method signatures
Getters are supposed to have signature "PyObject *(PyObject *self, void *closure)", but the closure argument is often not used. In wasm it causes a trap if a function is declared with one argument and then called with two.
This commit is contained in:
parent
be4c59d2a9
commit
7a93328834
|
@ -235,7 +235,7 @@ _setfd(ImagingDecoderObject *decoder, PyObject *args) {
|
|||
}
|
||||
|
||||
static PyObject *
|
||||
_get_pulls_fd(ImagingDecoderObject *decoder) {
|
||||
_get_pulls_fd(ImagingDecoderObject *decoder, void *closure) {
|
||||
return PyBool_FromLong(decoder->pulls_fd);
|
||||
}
|
||||
|
||||
|
|
|
@ -299,7 +299,7 @@ _setfd(ImagingEncoderObject *encoder, PyObject *args) {
|
|||
}
|
||||
|
||||
static PyObject *
|
||||
_get_pushes_fd(ImagingEncoderObject *encoder) {
|
||||
_get_pushes_fd(ImagingEncoderObject *encoder, void *closure) {
|
||||
return PyBool_FromLong(encoder->pushes_fd);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user