diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2008-01-14 13:42:43 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2008-01-14 13:42:43 +0200 |
commit | 362dc3843b373c1007a50a4719f378981f18ae03 (patch) | |
tree | 0f2ccd7e200fd2d29f7863c2cd589d7394736ad4 /src/liblzma | |
parent | Major changes to LZ encoder, LZMA encoder, and range encoder. (diff) | |
download | xz-362dc3843b373c1007a50a4719f378981f18ae03.tar.xz |
Remove RC_BUFFER_SIZE from lzma_encoder_private.h
and replace it with a sanity check.
Diffstat (limited to 'src/liblzma')
-rw-r--r-- | src/liblzma/lzma/lzma_encoder_private.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/liblzma/lzma/lzma_encoder_private.h b/src/liblzma/lzma/lzma_encoder_private.h index 9ecbc1c5..ba19b6ae 100644 --- a/src/liblzma/lzma/lzma_encoder_private.h +++ b/src/liblzma/lzma/lzma_encoder_private.h @@ -24,13 +24,15 @@ #include "lzma_encoder.h" #include "lzma_common.h" #include "lz_encoder.h" +#include "range_encoder.h" // We need space for about two encoding loops, because there is no check // for available buffer space before end of payload marker gets written. // 2*26 bytes should be enough for this... but Lasse isn't very sure about // the exact value. 64 bytes certainly is enough. :-) -#define RC_BUFFER_SIZE 64 -#include "range_encoder.h" +#if LZMA_LZ_TEMP_SIZE < 64 +# error LZMA_LZ_TEMP_SIZE is too small. +#endif #define move_pos(num) \ |