Patch #103926: fix two warnings from Tru64's compiler

This commit is contained in:
Andrew M. Kuchling 2001-02-22 15:52:55 +00:00
parent b995509c2f
commit a1a690fa9c
2 changed files with 4 additions and 2 deletions

View file

@ -86,7 +86,9 @@ dl_call(dlobject *xp, PyObject *args)
"function name must be a string");
return NULL;
}
func = dlsym(xp->dl_handle, PyString_AsString(name));
func = (long (*)(long, long, long, long, long,
long, long, long, long, long))
dlsym(xp->dl_handle, PyString_AsString(name));
if (func == NULL) {
PyErr_SetString(PyExc_ValueError, dlerror());
return NULL;