mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-20 21:33:10 -07:00
Fix member function access on m_memoryValue.
This commit is contained in:
parent
f63b694a8a
commit
b5e4248620
1 changed files with 2 additions and 2 deletions
|
@ -718,7 +718,7 @@ void CCalcEngine::ProcessCommandWorker(WPARAM wParam)
|
||||||
{
|
{
|
||||||
/* MPLUS adds m_currentVal to immediate memory and kills the "mem" */
|
/* MPLUS adds m_currentVal to immediate memory and kills the "mem" */
|
||||||
/* indicator if the result is zero. */
|
/* 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<Rational>(TruncateNumForIntMath(result)); // Memory should follow the current int mode
|
m_memoryValue = make_unique<Rational>(TruncateNumForIntMath(result)); // Memory should follow the current int mode
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
@ -727,7 +727,7 @@ void CCalcEngine::ProcessCommandWorker(WPARAM wParam)
|
||||||
{
|
{
|
||||||
/* MMINUS subtracts m_currentVal to immediate memory and kills the "mem" */
|
/* MMINUS subtracts m_currentVal to immediate memory and kills the "mem" */
|
||||||
/* indicator if the result is zero. */
|
/* 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<Rational>(TruncateNumForIntMath(result));
|
m_memoryValue = make_unique<Rational>(TruncateNumForIntMath(result));
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue