Skip to content

Commit

Permalink
Fix left-over incorrect type in uzlib.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmattsson committed Mar 27, 2024
1 parent f759e9b commit 8dc7d8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/uzlib/uzlib_deflate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8dc7d8e

Please sign in to comment.