Cast argument to set_panel_userptr to void*. Fixes bug #417240.
This commit is contained in:
parent
7d99ff27e8
commit
a38d9169bc
|
@ -304,7 +304,7 @@ PyCursesPanel_set_panel_userptr(PyCursesPanelObject *self, PyObject *args)
|
||||||
}
|
}
|
||||||
obj = PyTuple_GetItem(args, 0);
|
obj = PyTuple_GetItem(args, 0);
|
||||||
Py_INCREF(obj);
|
Py_INCREF(obj);
|
||||||
return PyCursesCheckERR(set_panel_userptr(self->pan, obj),
|
return PyCursesCheckERR(set_panel_userptr(self->pan, (void*)obj),
|
||||||
"set_panel_userptr");
|
"set_panel_userptr");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue