Fix spelling in some comments (#38)

This commit is contained in:
Matt Cooley 2019-02-25 15:41:16 -08:00 committed by GitHub
parent ddc470949c
commit 654f09f544
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -39,7 +39,7 @@ bool CalcInput::TryToggleSign(bool isIntegerMode, wstring_view maxNumStr)
} }
else else
{ {
// When in integer only mode, it isnt always allowed to toggle, as toggling can cause the num to be out of // When in integer only mode, it isn't always allowed to toggle, as toggling can cause the num to be out of
// bounds. For eg. in byte -128 is valid, but when it toggled it becomes 128, which is more than 127. // bounds. For eg. in byte -128 is valid, but when it toggled it becomes 128, which is more than 127.
if (isIntegerMode && m_base.IsNegative()) if (isIntegerMode && m_base.IsNegative())
{ {
@ -74,7 +74,7 @@ bool CalcInput::TryAddDigit(unsigned int value, uint32_t radix, bool isIntegerMo
pNumSec = &m_base; pNumSec = &m_base;
maxCount = maxDigits; maxCount = maxDigits;
// Don't include the decimal point in the count. In that way you can enter the maximum allowed precision. // Don't include the decimal point in the count. In that way you can enter the maximum allowed precision.
// Precision doesnt include decimal point. // Precision doesn't include decimal point.
if (HasDecimalPt()) if (HasDecimalPt())
{ {
maxCount++; maxCount++;

View File

@ -110,7 +110,7 @@ void CHistoryCollector::RemoveLastOpndFromHistory()
TruncateEquationSzFromIch(m_lastOpStartIndex); TruncateEquationSzFromIch(m_lastOpStartIndex);
SetExpressionDisplay(); SetExpressionDisplay();
m_lastOpStartIndex = -1; m_lastOpStartIndex = -1;
// This will not restore the m_lastBinOpStartIndex, as it isnt possible to remove that also later // This will not restore the m_lastBinOpStartIndex, as it isn't possible to remove that also later
} }
void CHistoryCollector::AddBinOpToHistory(int nOpCode, bool fNoRepetition) void CHistoryCollector::AddBinOpToHistory(int nOpCode, bool fNoRepetition)

View File

@ -44,7 +44,7 @@ void CCalcEngine::InitialOneTimeOnlySetup(CalculationManager::IResourceProvider&
{ {
LoadEngineStrings(resourceProvider); LoadEngineStrings(resourceProvider);
// we must now setup all the ratpak constants and our arrayed pointers // we must now set up all the ratpak constants and our arrayed pointers
// to these constants. // to these constants.
ChangeBaseConstants(DEFAULT_RADIX, DEFAULT_MAX_DIGITS, DEFAULT_PRECISION); ChangeBaseConstants(DEFAULT_RADIX, DEFAULT_MAX_DIGITS, DEFAULT_PRECISION);
} }
@ -112,8 +112,8 @@ void CCalcEngine::InitChopNumbers()
m_chopNumbers[2] = Rational{ rat_word }; m_chopNumbers[2] = Rational{ rat_word };
m_chopNumbers[3] = Rational{ rat_byte }; m_chopNumbers[3] = Rational{ rat_byte };
// initialize the max dec number you can support for each of the supported bit length // initialize the max dec number you can support for each of the supported bit lengths
// this is basically max num in that width / 2 in integer // this is basically max num in that width / 2 in integer
assert(m_chopNumbers.size() == m_maxDecimalValueStrings.size()); assert(m_chopNumbers.size() == m_maxDecimalValueStrings.size());
for (size_t i = 0; i < m_chopNumbers.size(); i++) for (size_t i = 0; i < m_chopNumbers.size(); i++)
{ {