Fix left-over incorrect type in uzlib.

This commit is contained in:
Jade Mattsson 2024-03-27 17:52:24 +11:00
parent f759e9baa8
commit 8dc7d8eb57
1 changed files with 1 additions and 1 deletions

View File

@ -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;