]> git.ipfire.org Git - thirdparty/zstd.git/commit
fixed very minor inefficiency (nbSeq==127) 1721/head
authorYann Collet <cyan@fb.com>
Thu, 15 Aug 2019 14:41:34 +0000 (16:41 +0200)
committerYann Collet <cyan@fb.com>
Thu, 15 Aug 2019 14:41:34 +0000 (16:41 +0200)
commit782bfb858afb88f014271f8efbb7bef909cee6db
tree3ceb29074bc143c1b845db9ecd1fce03e4dd0aa6
parent87e31223e8da161aee4bb459d6a04801d5265f87
fixed very minor inefficiency (nbSeq==127)

The nbSeq "short" format (1-byte)
is compatible with any value < 128.

However, the code would cautiously only accept values < 127.
This is not an error, because the general 2-bytes format
is compatible with small values < 128.
Hence the inefficiency never triggered any warning.

Spotted by Intel's Smita Kumar.
lib/compress/zstd_compress.c