]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
liblzma: Fix a comment and RC_SYMBOLS_MAX.
authorLasse Collin <lasse.collin@tukaani.org>
Mon, 2 Mar 2020 11:54:33 +0000 (13:54 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Mon, 2 Mar 2020 11:54:33 +0000 (13:54 +0200)
The comment didn't match the value of RC_SYMBOLS_MAX and the value
itself was slightly larger than actually needed. The only harm
about this was that memory usage was a few bytes larger.

src/liblzma/rangecoder/range_encoder.h

index 1e1c36995b6332382661ce51fc4d8c12c5e52811..4f3b30ca5bc43d39d47114852a7d433d87a1d683 100644 (file)
@@ -19,9 +19,9 @@
 
 
 /// Maximum number of symbols that can be put pending into lzma_range_encoder
-/// structure between calls to lzma_rc_encode(). For LZMA, 52+5 is enough
+/// structure between calls to lzma_rc_encode(). For LZMA, 48+5 is enough
 /// (match with big distance and length followed by range encoder flush).
-#define RC_SYMBOLS_MAX 58
+#define RC_SYMBOLS_MAX 53
 
 
 typedef struct {