From: Przemyslaw Skibinski Date: Thu, 1 Dec 2016 10:56:20 +0000 (+0100) Subject: gzread.c: improved comments X-Git-Tag: v1.1.2~46^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc2fe75732eea8cb4bb2b2dd5641094dafcaa84f;p=thirdparty%2Fzstd.git gzread.c: improved comments --- diff --git a/zlibWrapper/gzread.c b/zlibWrapper/gzread.c index ad33ebc62..51ffef3e6 100644 --- a/zlibWrapper/gzread.c +++ b/zlibWrapper/gzread.c @@ -138,8 +138,8 @@ local int gz_look(state) single byte is sufficient indication that it is not a gzip file) */ //printf("strm->next_in[0]=%d strm->next_in[1]=%d\n", strm->next_in[0], strm->next_in[1]); if (strm->avail_in > 1 && - ((strm->next_in[0] == 31 && strm->next_in[1] == 139) - || (strm->next_in[0] == 40 && strm->next_in[1] == 181))) { // zstd + ((strm->next_in[0] == 31 && strm->next_in[1] == 139) /* gz header */ + || (strm->next_in[0] == 40 && strm->next_in[1] == 181))) { /* zstd header */ inflateReset(strm); state.state->how = GZIP; state.state->direct = 0;