Skip to content

Commit a1a690f

Browse files
committed
Patch python#103926: fix two warnings from Tru64's compiler
1 parent b995509 commit a1a690f

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Modules/dlmodule.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ dl_call(dlobject *xp, PyObject *args)
8686
"function name must be a string");
8787
return NULL;
8888
}
89-
func = dlsym(xp->dl_handle, PyString_AsString(name));
89+
func = (long (*)(long, long, long, long, long,
90+
long, long, long, long, long))
91+
dlsym(xp->dl_handle, PyString_AsString(name));
9092
if (func == NULL) {
9193
PyErr_SetString(PyExc_ValueError, dlerror());
9294
return NULL;

Modules/zlibmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ PyZlib_objdecompress(compobject *self, PyObject *args)
492492
behaviour of only calling it on flush() is preserved.*/
493493
if (err == Z_STREAM_END) {
494494
Py_XDECREF(self->unused_data); /* Free the original, empty string */
495-
self->unused_data = PyString_FromStringAndSize(self->zst.next_in,
495+
self->unused_data = PyString_FromStringAndSize((char *)self->zst.next_in,
496496
self->zst.avail_in);
497497
if (self->unused_data == NULL) {
498498
PyErr_SetString(PyExc_MemoryError,

0 commit comments

Comments
 (0)