Skip to content

Commit defda29

Browse files
committed
Bugfix: Parsing of Python arguments for EN_setvertices
1 parent 6134755 commit defda29

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

python-extension/pyepanet.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1640,8 +1640,8 @@ PyObject* method_EN_setvertices(PyObject* self, PyObject* args)
16401640
{
16411641
uintptr_t ptr;
16421642
int index;
1643-
double* x = NULL;
1644-
double* y = NULL;
1643+
PyObject* x = NULL;
1644+
PyObject* y = NULL;
16451645
int count;
16461646
if(!PyArg_ParseTuple(args, "KiOOi", &ptr, &index, &x, &y, &count)) {
16471647
return NULL;

python-extension/pyepanet2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2158,8 +2158,8 @@ PyObject* method_ENsettitle(PyObject* self, PyObject* args)
21582158
PyObject* method_ENsetvertices(PyObject* self, PyObject* args)
21592159
{
21602160
int index;
2161-
double* x = NULL;
2162-
double* y = NULL;
2161+
PyObject* x = NULL;
2162+
PyObject* y = NULL;
21632163
int count;
21642164
if(!PyArg_ParseTuple(args, "iOOi", &index, &x, &y, &count)) {
21652165
return NULL;

0 commit comments

Comments
 (0)