From d2e7d475bbb16d40ab3adcd8a0a2b0c5fc68c562 Mon Sep 17 00:00:00 2001 From: Daniel Belcher Date: Wed, 13 Mar 2019 21:27:58 -0700 Subject: [PATCH] - 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. --- src/CalcManager/CEngine/scicomm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CalcManager/CEngine/scicomm.cpp b/src/CalcManager/CEngine/scicomm.cpp index f17938bf..3cbe5352 100644 --- a/src/CalcManager/CEngine/scicomm.cpp +++ b/src/CalcManager/CEngine/scicomm.cpp @@ -514,7 +514,7 @@ void CCalcEngine::ProcessCommandWorker(OpCode wParam) m_HistoryCollector.PopLastOpndStart(); m_bNoPrevEqu = true; - } while (m_precedenceOpCount >= 0); + } while (true); if (!m_bError) {