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/mips64/assembler_mips64.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/utils/mips64/assembler_mips64.cc') diff --git a/compiler/utils/mips64/assembler_mips64.cc b/compiler/utils/mips64/assembler_mips64.cc index 5b1c5d9e01..6df9562fd5 100644 --- a/compiler/utils/mips64/assembler_mips64.cc +++ b/compiler/utils/mips64/assembler_mips64.cc @@ -2889,7 +2889,7 @@ void Mips64Assembler::FinalizeLabeledBranch(Mips64Label* label) { label->LinkTo(branch_id); } // Reserve space for the branch. - while (length--) { + for (; length != 0u; --length) { Nop(); } } -- cgit v1.2.3-59-g8ed1b