mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
Fix wrong indentation caused by incorrect settings
in the text editor.
This commit is contained in:
parent
93e418562c
commit
e330fb7e6b
3 changed files with 13 additions and 13 deletions
|
@ -39,15 +39,15 @@ struct lzma_coder_s {
|
||||||
/// marker. This may become true before next_finished becomes true.
|
/// marker. This may become true before next_finished becomes true.
|
||||||
bool this_finished;
|
bool this_finished;
|
||||||
|
|
||||||
/// Temporary buffer needed when the LZ-based filter is not the last
|
/// Temporary buffer needed when the LZ-based filter is not the last
|
||||||
/// filter in the chain. The output of the next filter is first
|
/// filter in the chain. The output of the next filter is first
|
||||||
/// decoded into buffer[], which is then used as input for the actual
|
/// decoded into buffer[], which is then used as input for the actual
|
||||||
/// LZ-based decoder.
|
/// LZ-based decoder.
|
||||||
struct {
|
struct {
|
||||||
size_t pos;
|
size_t pos;
|
||||||
size_t size;
|
size_t size;
|
||||||
uint8_t buffer[LZMA_BUFFER_SIZE];
|
uint8_t buffer[LZMA_BUFFER_SIZE];
|
||||||
} temp;
|
} temp;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -274,9 +274,9 @@ static lzma_ret
|
||||||
lzma2_encoder_options_update(lzma_coder *coder, const lzma_filter *filter)
|
lzma2_encoder_options_update(lzma_coder *coder, const lzma_filter *filter)
|
||||||
{
|
{
|
||||||
// New options can be set only when there is no incomplete chunk.
|
// New options can be set only when there is no incomplete chunk.
|
||||||
// This is the case at the beginning of the raw stream and right
|
// This is the case at the beginning of the raw stream and right
|
||||||
// after LZMA_SYNC_FLUSH.
|
// after LZMA_SYNC_FLUSH.
|
||||||
if (filter->options == NULL || coder->sequence != SEQ_INIT)
|
if (filter->options == NULL || coder->sequence != SEQ_INIT)
|
||||||
return LZMA_PROG_ERROR;
|
return LZMA_PROG_ERROR;
|
||||||
|
|
||||||
// Look if there are new options. At least for now,
|
// Look if there are new options. At least for now,
|
||||||
|
|
|
@ -531,7 +531,7 @@ helper2(lzma_coder *coder, uint32_t *reps, const uint8_t *buf,
|
||||||
const uint32_t cur_and_1_price = cur_price
|
const uint32_t cur_and_1_price = cur_price
|
||||||
+ rc_bit_0_price(coder->is_match[state][pos_state])
|
+ rc_bit_0_price(coder->is_match[state][pos_state])
|
||||||
+ get_literal_price(coder, position, buf[-1],
|
+ get_literal_price(coder, position, buf[-1],
|
||||||
!is_literal_state(state), match_byte, current_byte);
|
!is_literal_state(state), match_byte, current_byte);
|
||||||
|
|
||||||
bool next_is_literal = false;
|
bool next_is_literal = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue