From b5e4248620c82d470ad67c8fde35e87dbbe85ce1 Mon Sep 17 00:00:00 2001 From: Josh Koon <45607479+joshkoon@users.noreply.github.com> Date: Mon, 18 Feb 2019 15:12:08 -0800 Subject: [PATCH] Fix member function access on m_memoryValue. --- src/CalcManager/CEngine/scicomm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CalcManager/CEngine/scicomm.cpp b/src/CalcManager/CEngine/scicomm.cpp index 9871cf23..9ecbdcb2 100644 --- a/src/CalcManager/CEngine/scicomm.cpp +++ b/src/CalcManager/CEngine/scicomm.cpp @@ -718,7 +718,7 @@ void CCalcEngine::ProcessCommandWorker(WPARAM wParam) { /* MPLUS adds m_currentVal to immediate memory and kills the "mem" */ /* indicator if the result is zero. */ - Rational result = (*m_memoryValue).Add(m_currentVal, m_precision); + Rational result = m_memoryValue->Add(m_currentVal, m_precision); m_memoryValue = make_unique(TruncateNumForIntMath(result)); // Memory should follow the current int mode break; @@ -727,7 +727,7 @@ void CCalcEngine::ProcessCommandWorker(WPARAM wParam) { /* MMINUS subtracts m_currentVal to immediate memory and kills the "mem" */ /* indicator if the result is zero. */ - Rational result = (*m_memoryValue).Sub(m_currentVal, m_precision); + Rational result = m_memoryValue->Sub(m_currentVal, m_precision); m_memoryValue = make_unique(TruncateNumForIntMath(result)); break;