From 8dc7d8eb574a46b97c16038a09ab8c07a5b29df6 Mon Sep 17 00:00:00 2001 From: Jade Mattsson Date: Wed, 27 Mar 2024 17:52:24 +1100 Subject: [PATCH] Fix left-over incorrect type in uzlib. --- components/uzlib/uzlib_deflate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/uzlib/uzlib_deflate.c b/components/uzlib/uzlib_deflate.c index 9327176d8..28b71b960 100644 --- a/components/uzlib/uzlib_deflate.c +++ b/components/uzlib/uzlib_deflate.c @@ -251,7 +251,7 @@ void resizeBuffer(void) { /* The outbuf is given an initial size estimate but if we are running */ /* out of space then extropolate size using current compression */ double newEstimate = (((double) oBuf->len)*oBuf->inLen) / oBuf->inNdx; - oBuf->size = 128 + (uint) newEstimate; + oBuf->size = 128 + (uint32_t) newEstimate; if (!(nb = realloc(oBuf->buffer, oBuf->size))) UZLIB_THROW(UZLIB_MEMORY_ERROR); oBuf->buffer = nb;