← Commit list

b62d4d9d5

Denys Vlasenko
Denys Vlasenko
2015-02-03
SUCCESS Duration: 139s

Subject

gzip: trivial code shrink -5 bytes

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/gzip.c+4 -4
@@ -442,19 +442,19 @@ static void put_16bit(ush w)
*dst = (uch)w;
w >>= 8;
#else
- *dst++ = (uch)w;
+ *dst = (uch)w;
w >>= 8;
if (outcnt < OUTBUFSIZ-2) {
/* Common case */
- *dst = w;
+ dst[1] = w;
G1.outcnt = outcnt + 2;
return;
}
#endif
/* Slowpath: we will need to do flush_outbuf() */
- G1.outcnt++;
- if (G1.outcnt == OUTBUFSIZ)
+ G1.outcnt = ++outcnt;
+ if (outcnt == OUTBUFSIZ)
flush_outbuf();
put_8bit(w);
}