From 20d200471d31af13c192c4fc46a0bc3238c9392d Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Tue, 7 Jun 2022 23:49:31 -0700 Subject: [PATCH] kern: optimize postfix-compare to prefix-compare, result logic is identical but breaks earlier in some paths --- libraries/libmesosphere/source/kern_k_address_arbiter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libmesosphere/source/kern_k_address_arbiter.cpp b/libraries/libmesosphere/source/kern_k_address_arbiter.cpp index 335c12bca..8ac08e067 100644 --- a/libraries/libmesosphere/source/kern_k_address_arbiter.cpp +++ b/libraries/libmesosphere/source/kern_k_address_arbiter.cpp @@ -132,7 +132,7 @@ namespace ams::kern { auto tmp_it = it; s32 tmp_num_waiters = 0; while ((++tmp_it != m_tree.end()) && (tmp_it->GetAddressArbiterKey() == addr)) { - if ((tmp_num_waiters++) >= count) { + if ((++tmp_num_waiters) >= count) { break; } }