← Commit list

2cfe10a55

Denys Vlasenko
Denys Vlasenko
2018-02-03
SUCCESS Duration: 144s

Subject

bzip2: shrink makeMaps_e()

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

archival/libarchive/bz/compress.c+4 -3
@@ -146,13 +146,14 @@ static
void makeMaps_e(EState* s)
{
int i;
- s->nInUse = 0;
+ unsigned cnt = 0;
for (i = 0; i < 256; i++) {
if (s->inUse[i]) {
- s->unseqToSeq[i] = s->nInUse;
- s->nInUse++;
+ s->unseqToSeq[i] = cnt;
+ cnt++;
}
}
+ s->nInUse = cnt;
}