Cast argument to set_panel_userptr to void*. Fixes bug #417240.

This commit is contained in:
Martin v. Löwis 2001-10-13 08:50:10 +00:00
parent 7d99ff27e8
commit a38d9169bc
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}