From c74d9cbd4c7b1b5b1a4c5a6bb34e9426336bbecc Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Thu, 20 Sep 2018 13:44:44 -0700 Subject: ART: Modernize counting-down loops Preparation for readability-implicit-bool-conversion. Bug: 32619234 Test: WITH_TIDY=1 mmma art Change-Id: I7a6f9636d5f4537020f99e8cf8560f7f6b6b7ba0 --- compiler/utils/mips/assembler_mips.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/utils/mips/assembler_mips.cc') diff --git a/compiler/utils/mips/assembler_mips.cc b/compiler/utils/mips/assembler_mips.cc index c0b6f988d4..1ba535f4c3 100644 --- a/compiler/utils/mips/assembler_mips.cc +++ b/compiler/utils/mips/assembler_mips.cc @@ -3610,7 +3610,7 @@ void MipsAssembler::FinalizeLabeledBranch(MipsLabel* label) { label->LinkTo(branch_id); } // Reserve space for the branch. - while (length--) { + for (; length != 0u; --length) { Nop(); } } -- cgit v1.2.3-59-g8ed1b