summaryrefslogtreecommitdiffstats
path: root/Modules/zlibmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/zlibmodule.c')
-rw-r--r--Modules/zlibmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c
index cfe7f88..32dd817 100644
--- a/Modules/zlibmodule.c
+++ b/Modules/zlibmodule.c
@@ -142,7 +142,7 @@ PyZlib_Free(voidpf ctx, void *ptr)
static void
arrange_input_buffer(z_stream *zst, Py_ssize_t *remains)
{
- zst->avail_in = Py_MIN((size_t)*remains, UINT_MAX);
+ zst->avail_in = (uInt)Py_MIN((size_t)*remains, UINT_MAX);
*remains -= zst->avail_in;
}
@@ -177,7 +177,7 @@ arrange_output_buffer_with_maximum(z_stream *zst, PyObject **buffer,
}
}
- zst->avail_out = Py_MIN((size_t)(length - occupied), UINT_MAX);
+ zst->avail_out = (uInt)Py_MIN((size_t)(length - occupied), UINT_MAX);
zst->next_out = (Byte *)PyBytes_AS_STRING(*buffer) + occupied;
return length;