mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 06:13:14 -07:00
- The conditional m_precedenceOpCount >= 0
was always true because m_precendenceOpCount
is an unsigned type. Update the conditional to simply be true and rely on a break statement in the loop.
This commit is contained in:
parent
f6a6aae6e6
commit
d2e7d475bb
1 changed files with 1 additions and 1 deletions
|
@ -514,7 +514,7 @@ void CCalcEngine::ProcessCommandWorker(OpCode wParam)
|
|||
m_HistoryCollector.PopLastOpndStart();
|
||||
|
||||
m_bNoPrevEqu = true;
|
||||
} while (m_precedenceOpCount >= 0);
|
||||
} while (true);
|
||||
|
||||
if (!m_bError)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue