mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-22 12:21:18 +00:00
kern: optimize postfix-compare to prefix-compare, result logic is identical but breaks earlier in some paths
This commit is contained in:
parent
5f2d713fe4
commit
20d200471d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue