Fix compiler warnings in the lzx module

This commit is contained in:
Kovid Goyal 2017-08-23 07:57:23 +05:30
parent 2f35ca7ca5
commit 90999636f9
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -285,8 +285,8 @@ int lz_compress(lz_info *lzi, int nchars)
{
unsigned char *bbp, *bbe;
int *lentab, *lenp;
unsigned char **prevtab, **prevp;
int *lenp;
unsigned char **prevp;
int len;
int holdback;
short trimmed;
@ -327,8 +327,8 @@ int lz_compress(lz_info *lzi, int nchars)
lz_analyze_block(lzi);
}
#endif
prevtab = prevp = lzi->prevtab + lzi->block_loc;
lentab = lenp = lzi->lentab + lzi->block_loc;
prevp = lzi->prevtab + lzi->block_loc;
lenp = lzi->lentab + lzi->block_loc;
bbp = lzi->block_buf + lzi->block_loc;
holdback = lzi->max_match;
if (lzi->eofcount) holdback = 0;