mirror of https://git.tukaani.org/xz.git
xz: Add braces to a for-statement and to an if-statement
No functional changes. Fixes:5f0c5a0438
Fixes:479fd58d60
(cherry picked from commit9bef5b8d17
)
This commit is contained in:
parent
34be4e6aa6
commit
005f039864
|
@ -695,7 +695,7 @@ coder_set_compression_settings(void)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
for (uint32_t j = 0; filters[i][j].id != LZMA_VLI_UNKNOWN;
|
for (uint32_t j = 0; filters[i][j].id != LZMA_VLI_UNKNOWN;
|
||||||
j++)
|
j++) {
|
||||||
if ((filters[i][j].id == LZMA_FILTER_LZMA2
|
if ((filters[i][j].id == LZMA_FILTER_LZMA2
|
||||||
|| filters[i][j].id
|
|| filters[i][j].id
|
||||||
== LZMA_FILTER_LZMA1)
|
== LZMA_FILTER_LZMA1)
|
||||||
|
@ -712,6 +712,7 @@ coder_set_compression_settings(void)
|
||||||
opt->dict_size &= ~((UINT32_C(1) << 20) - 1);
|
opt->dict_size &= ~((UINT32_C(1) << 20) - 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Loop until all filters use <= memory_limit, or exit.
|
// Loop until all filters use <= memory_limit, or exit.
|
||||||
while (count > 0) {
|
while (count > 0) {
|
||||||
|
@ -1288,9 +1289,10 @@ coder_normal(file_pair *pair)
|
||||||
ret = lzma_code(&strm, action);
|
ret = lzma_code(&strm, action);
|
||||||
|
|
||||||
// Write out if the output buffer became full.
|
// Write out if the output buffer became full.
|
||||||
if (strm.avail_out == 0)
|
if (strm.avail_out == 0) {
|
||||||
if (coder_write_output(pair))
|
if (coder_write_output(pair))
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef HAVE_ENCODERS
|
#ifdef HAVE_ENCODERS
|
||||||
if (ret == LZMA_STREAM_END && (action == LZMA_SYNC_FLUSH
|
if (ret == LZMA_STREAM_END && (action == LZMA_SYNC_FLUSH
|
||||||
|
|
Loading…
Reference in New Issue