]> granicus.if.org Git - python/commitdiff
Patch #103926: fix two warnings from Tru64's compiler
authorAndrew M. Kuchling <amk@amk.ca>
Thu, 22 Feb 2001 15:52:55 +0000 (15:52 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Thu, 22 Feb 2001 15:52:55 +0000 (15:52 +0000)
Modules/dlmodule.c
Modules/zlibmodule.c

index b7cd35b3d80a49ba7a7bf67b154899b3c69d0179..bb49a500079bb1f3aaa52ff9fc34886a7f5b8338 100644 (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;
index 3d77fcaf66cfdc810127c603b726da31c314a29e..fbb8ecea37344d207eee6e9ae6925b3b8a74c715 100644 (file)
@@ -492,7 +492,7 @@ PyZlib_objdecompress(compobject *self, PyObject *args)
     behaviour of only calling it on flush() is preserved.*/
   if (err == Z_STREAM_END) {
     Py_XDECREF(self->unused_data);  /* Free the original, empty string */
-    self->unused_data = PyString_FromStringAndSize(self->zst.next_in,
+    self->unused_data = PyString_FromStringAndSize((char *)self->zst.next_in,
                                                   self->zst.avail_in);
     if (self->unused_data == NULL) {
       PyErr_SetString(PyExc_MemoryError,