Skip to content

Commit

Permalink
Changed output of GetCurrentRadix to match the variable type of m_rad…
Browse files Browse the repository at this point in the history
…ix (#1416)

Co-authored-by: PokeCodec <67983839+PokeCodec@users.noreply.github.com>
  • Loading branch information
Seija and PokeCodec committed Oct 28, 2020
1 parent dd9d948 commit 13d8b04
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/CalcManager/CEngine/scicomm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,7 @@ bool CCalcEngine::IsCurrentTooBigForTrig()
return m_currentVal >= m_maxTrigonometricNum;
}

int CCalcEngine::GetCurrentRadix()
uint32_t CCalcEngine::GetCurrentRadix()
{
return m_radix;
}
Expand Down
2 changes: 1 addition & 1 deletion src/CalcManager/CalculatorManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ namespace CalculationManager
vector<wstring> resultVector;
for (auto const& memoryItem : m_memorizedNumbers)
{
int radix = m_currentCalculatorEngine->GetCurrentRadix();
auto radix = m_currentCalculatorEngine->GetCurrentRadix();
wstring stringValue = m_currentCalculatorEngine->GetStringForDisplay(memoryItem, radix);

if (!stringValue.empty())
Expand Down
2 changes: 1 addition & 1 deletion src/CalcManager/Header Files/CalcEngine.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class CCalcEngine
}
void SettingsChanged();
bool IsCurrentTooBigForTrig();
int GetCurrentRadix();
uint32_t GetCurrentRadix();
std::wstring GetCurrentResultForRadix(uint32_t radix, int32_t precision, bool groupDigitsPerRadix);
void ChangePrecision(int32_t precision)
{
Expand Down

0 comments on commit 13d8b04

Please sign in to comment.