heh few more bytes saved
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1222 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
646eb72d38
commit
629c00577c
1 changed files with 8 additions and 12 deletions
|
@ -64,17 +64,6 @@
|
||||||
#include "bzlib_private.h"
|
#include "bzlib_private.h"
|
||||||
|
|
||||||
|
|
||||||
/*---------------------------------------------------*/
|
|
||||||
static
|
|
||||||
void makeMaps_d ( DState* s )
|
|
||||||
{
|
|
||||||
Int32 i;
|
|
||||||
s->nInUse = 0;
|
|
||||||
for (i = 0; i < 256; i++)
|
|
||||||
if (s->inUse[i])
|
|
||||||
s->seqToUnseq[s->nInUse++] = i;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*---------------------------------------------------*/
|
/*---------------------------------------------------*/
|
||||||
#define RETURN(rrr) \
|
#define RETURN(rrr) \
|
||||||
|
@ -234,7 +223,14 @@ Int32 BZ2_decompress ( DState* s )
|
||||||
GET_BIT(BZ_X_MAPPING_2, uc);
|
GET_BIT(BZ_X_MAPPING_2, uc);
|
||||||
if (uc == 1) s->inUse[i * 16 + j] = True;
|
if (uc == 1) s->inUse[i * 16 + j] = True;
|
||||||
}
|
}
|
||||||
makeMaps_d ( s );
|
{
|
||||||
|
Int32 qi;
|
||||||
|
s->nInUse = 0;
|
||||||
|
for (qi = 0; qi < 256; qi++)
|
||||||
|
if (s->inUse[qi])
|
||||||
|
s->seqToUnseq[s->nInUse++] = qi;
|
||||||
|
}
|
||||||
|
|
||||||
if (s->nInUse == 0) RETURN(BZ_DATA_ERROR);
|
if (s->nInUse == 0) RETURN(BZ_DATA_ERROR);
|
||||||
alphaSize = s->nInUse+2;
|
alphaSize = s->nInUse+2;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue