BaseTools LzmaCompress: Fix GCC warning misleading-indentation

GCC 6 or above reports the warning misleading-indentation.
This patch fixes it.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1234
[lersek@redhat.com: reference the BZ that got reported meanwhile]
This commit is contained in:
Liming Gao 2018-10-09 15:06:14 +08:00 committed by Laszlo Ersek
parent 39bbbc8759
commit 50431b9cc7
1 changed files with 3 additions and 1 deletions

View File

@ -1464,7 +1464,9 @@ static unsigned GetOptimum(CLzmaEnc *p, UInt32 position)
unsigned limit = p->numFastBytes + 1; unsigned limit = p->numFastBytes + 1;
if (limit > numAvailFull) if (limit > numAvailFull)
limit = numAvailFull; limit = numAvailFull;
for (len = 3; len < limit && data[len] == data2[len]; len++); for (len = 3; len < limit && data[len] == data2[len]; len++)
{
}
{ {
unsigned state2 = kLiteralNextStates[state]; unsigned state2 = kLiteralNextStates[state];