spelling: commands

This commit is contained in:
Josh Soref 2019-03-06 20:56:25 -05:00
commit bad36c10a7
2 changed files with 4 additions and 4 deletions

View file

@ -401,9 +401,9 @@ int CHistoryCollector::AddCommand(_In_ const std::shared_ptr<IExpressionCommand>
throw(CALC_E_OUTOFMEMORY);
}
unsigned int nCommmands = 0;
m_spCommands->GetSize(&nCommmands);
return nCommmands - 1;
unsigned int nCommands = 0;
m_spCommands->GetSize(&nCommands);
return nCommands - 1;
}
//To Update the operands in the Expression according to the current Radix

View file

@ -429,7 +429,7 @@ namespace CalculationManager
*commandItr <= MEMORY_COMMAND_TO_UNSIGNED_CHAR(MemoryCommand::MemorizedNumberClearAll))
{
//MemoryCommands(which have values above 255) are pushed on m_savedCommands upon casting to unsigned char.
//SerializeCommands uses m_savedCommands, which is then used in DeSerializeCommnds.
//SerializeCommands uses m_savedCommands, which is then used in DeSerializeCommands.
//Hence, a simple cast to MemoryCommand is not sufficient.
MemoryCommand memoryCommand = static_cast<MemoryCommand>(*commandItr + UCHAR_MAX + 1);
unsigned int indexOfMemory = 0;