mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 09:56:17 +03:00
Fix segfault when importing _imagingmorph
This commit is contained in:
parent
ca64211447
commit
1be36946c1
|
@ -267,9 +267,10 @@ setup_module(PyObject* m)
|
||||||
|
|
||||||
static PyMethodDef functions[] = {
|
static PyMethodDef functions[] = {
|
||||||
/* Functions */
|
/* Functions */
|
||||||
{"apply", (PyCFunction)apply, 1},
|
{"apply", (PyCFunction)apply, METH_VARARGS, NULL},
|
||||||
{"get_on_pixels", (PyCFunction)get_on_pixels, 1},
|
{"get_on_pixels", (PyCFunction)get_on_pixels, METH_VARARGS, NULL},
|
||||||
{"match", (PyCFunction)match, 1},
|
{"match", (PyCFunction)match, METH_VARARGS, NULL},
|
||||||
|
{NULL, NULL, 0, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
#if PY_VERSION_HEX >= 0x03000000
|
#if PY_VERSION_HEX >= 0x03000000
|
||||||
|
|
Loading…
Reference in New Issue
Block a user