mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-21 22:03:11 -07:00
spelling: commands
This commit is contained in:
parent
622e41d67e
commit
bad36c10a7
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue