mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-20 21:33:10 -07:00
Remove expression with no effects from CalculatorManager (#337)
This commit is contained in:
parent
251ffffc50
commit
426a6c058d
1 changed files with 4 additions and 1 deletions
|
@ -308,7 +308,10 @@ namespace CalculationManager
|
||||||
unsigned char CalculatorManager::MapCommandForSerialize(Command command)
|
unsigned char CalculatorManager::MapCommandForSerialize(Command command)
|
||||||
{
|
{
|
||||||
unsigned int commandToSave = static_cast<unsigned int>(command);
|
unsigned int commandToSave = static_cast<unsigned int>(command);
|
||||||
commandToSave > UCHAR_MAX ? commandToSave -= UCHAR_MAX : commandToSave;
|
if (commandToSave > UCHAR_MAX)
|
||||||
|
{
|
||||||
|
commandToSave -= UCHAR_MAX;
|
||||||
|
}
|
||||||
return static_cast<unsigned char>(commandToSave);
|
return static_cast<unsigned char>(commandToSave);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue