Skip to content

Commit

Permalink
Fix segfault when importing _imagingmorph
Browse files Browse the repository at this point in the history
  • Loading branch information
cgohlke committed Jun 25, 2014
1 parent ca64211 commit 1be3694
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions _imagingmorph.c
Expand Up @@ -267,9 +267,10 @@ setup_module(PyObject* m)

static PyMethodDef functions[] = {
/* Functions */
{"apply", (PyCFunction)apply, 1},
{"get_on_pixels", (PyCFunction)get_on_pixels, 1},
{"match", (PyCFunction)match, 1},
{"apply", (PyCFunction)apply, METH_VARARGS, NULL},
{"get_on_pixels", (PyCFunction)get_on_pixels, METH_VARARGS, NULL},
{"match", (PyCFunction)match, METH_VARARGS, NULL},
{NULL, NULL, 0, NULL}
};

#if PY_VERSION_HEX >= 0x03000000
Expand Down

0 comments on commit 1be3694

Please sign in to comment.