From de0f36ff343f71ec718fd4a0e3226ee5483d2aca Mon Sep 17 00:00:00 2001 From: Howard Wolosky Date: Tue, 19 Mar 2019 01:13:51 +0400 Subject: [PATCH] Update src/CalcManager/CalculatorHistory.cpp fix: data type property Co-Authored-By: Maharramoff <9804406+Maharramoff@users.noreply.github.com> --- src/CalcManager/CalculatorHistory.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/CalcManager/CalculatorHistory.cpp b/src/CalcManager/CalculatorHistory.cpp index 1c1f7b0d..886ff434 100644 --- a/src/CalcManager/CalculatorHistory.cpp +++ b/src/CalcManager/CalculatorHistory.cpp @@ -41,7 +41,8 @@ unsigned int CalculatorHistory::AddItem(_In_ shared_ptr const &spHi } m_historyItems.push_back(spHistoryItem); - return static_cast(m_historyItems.size() - 1); +unsigned int lastIndex = static_cast(m_historyItems.size() - 1); +return lastIndex; } bool CalculatorHistory::RemoveItem(_In_ unsigned int uIdx)