From: Martin v. Löwis Date: Sat, 13 Oct 2001 08:50:10 +0000 (+0000) Subject: Cast argument to set_panel_userptr to void*. Fixes bug #417240. X-Git-Tag: v2.2.1c1~1303 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a38d9169bc9b1a290b403f9b9c82a096af10b4d6;p=python Cast argument to set_panel_userptr to void*. Fixes bug #417240. --- diff --git a/Modules/_curses_panel.c b/Modules/_curses_panel.c index 42abc2ae3c..feecfccde8 100644 --- a/Modules/_curses_panel.c +++ b/Modules/_curses_panel.c @@ -304,7 +304,7 @@ PyCursesPanel_set_panel_userptr(PyCursesPanelObject *self, PyObject *args) } obj = PyTuple_GetItem(args, 0); Py_INCREF(obj); - return PyCursesCheckERR(set_panel_userptr(self->pan, obj), + return PyCursesCheckERR(set_panel_userptr(self->pan, (void*)obj), "set_panel_userptr"); }