]> git.ipfire.org Git - thirdparty/zstd.git/commit
ZDICT_finalizeDictionary() flipped comparison
authorNick Terrell <terrelln@fb.com>
Fri, 23 Dec 2016 02:01:14 +0000 (18:01 -0800)
committerNick Terrell <terrelln@fb.com>
Fri, 23 Dec 2016 02:01:14 +0000 (18:01 -0800)
commitbcbe77e9944694f71c8a54d687dea297cd3f7465
tree22c277e495904e61fed78df9799d98e5b311483a
parentd76d1a9ef08e9baaec9beec40bd354b2b2e1e893
ZDICT_finalizeDictionary() flipped comparison

`ZDICT_finalizeDictionary()` had a flipped comparison.
I also allowed `dictBufferCapacity == dictContentSize`.
It might be the case that the user wants to fill the dictionary
completely up, and then let zstd take exactly the space it needs
for the entropy tables.
lib/dictBuilder/zdict.c
lib/dictBuilder/zdict.h