From 614ea982b9af79a8607169014fe1fcd9b0c7a1f7 Mon Sep 17 00:00:00 2001 From: adithya-naik Date: Mon, 30 Mar 2026 23:09:11 +0530 Subject: [PATCH] =?UTF-8?q?Fix=20implicit=20multiplication:=20handle=20cas?= =?UTF-8?q?es=20like=20(25)2=20=E2=86=92=2025*2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/CalcManager/CEngine/scicomm.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/CalcManager/CEngine/scicomm.cpp b/src/CalcManager/CEngine/scicomm.cpp index a4300edc4..3c125d239 100644 --- a/src/CalcManager/CEngine/scicomm.cpp +++ b/src/CalcManager/CEngine/scicomm.cpp @@ -196,6 +196,9 @@ void CCalcEngine::ProcessCommandWorker(OpCode wParam) // Check if the last command was a closing parenthesis if (m_nLastCom == IDC_CLOSEP) { + if{ + ResolveHighestPrecedenceOperation(); + } // Treat this as an implicit multiplication m_nOpCode = IDC_MUL; m_lastVal = m_currentVal;