aboutsummaryrefslogtreecommitdiff
path: root/src/pklib
diff options
context:
space:
mode:
authorpionere <pionere@freemail.hu>2022-04-18 10:50:04 +0200
committerpionere <pionere@freemail.hu>2022-04-18 10:50:04 +0200
commit0278ae71deeb74eef927a606b410632a43900b5c (patch)
tree95b4714935c94d5b715119cbef91bebc21afc620 /src/pklib
parent8099c8ccb88319e6d1fa2359841a8af09aa3c8c1 (diff)
get rid of nChCode
Diffstat (limited to 'src/pklib')
-rw-r--r--src/pklib/implode.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/pklib/implode.c b/src/pklib/implode.c
index 1484ee2..7aabbd8 100644
--- a/src/pklib/implode.c
+++ b/src/pklib/implode.c
@@ -599,7 +599,6 @@ unsigned int PKEXPORT implode(
unsigned int *dsize)
{
TCmpStruct * pWork = (TCmpStruct *)work_buf;
- unsigned int nChCode;
unsigned int nCount;
unsigned int i;
int nCount2;
@@ -638,11 +637,10 @@ unsigned int PKEXPORT implode(
switch(*type)
{
case CMP_BINARY: // We will compress data with binary compression type
- for(nChCode = 0, nCount = 0; nCount < 0x100; nCount++)
+ for(nCount = 0; nCount < 0x100; nCount++)
{
pWork->nChBits[nCount] = 9;
- pWork->nChCodes[nCount] = (unsigned short)nChCode;
- nChCode = (nChCode & 0x0000FFFF) + 2;
+ pWork->nChCodes[nCount] = nCount * 2;
}
break;