UI: reduced the diff for binary_to_compressed_c.cpp

master
Martin Gerhardy 2022-01-24 19:29:53 +01:00
parent 14227ed439
commit 70b4c0c730
1 changed files with 4 additions and 2 deletions

View File

@ -342,7 +342,7 @@ static int stb_compress_chunk(stb_uchar *history,
static int stb_compress_inner(stb_uchar *input, stb_uint length)
{
int literals = 0;
stb_uint i;
stb_uint len,i;
stb_uchar **chash;
chash = (stb_uchar**) malloc(stb__hashsize * sizeof(stb_uchar*));
@ -360,7 +360,9 @@ static int stb_compress_inner(stb_uchar *input, stb_uint length)
stb__running_adler = 1;
stb_compress_chunk(input, input, input+length, length, &literals, chash, stb__hashsize-1);
len = stb_compress_chunk(input, input, input+length, length, &literals, chash, stb__hashsize-1);
assert(len == length);
(void)len;
outliterals(input+length - literals, literals);