Change long long int to fixed width integer type int64_t
This commit is contained in:
@@ -22,10 +22,10 @@ ChronospatialComputerInstruction::ChronospatialComputerInstruction(const Chronos
|
||||
switch (type)
|
||||
{
|
||||
case ChronospatialComputerOperandType::Literal :
|
||||
operandFunctor_ = [](const std::array<long long, 3>& registers, const int operand) { return operand; };
|
||||
operandFunctor_ = [](const std::array<int64_t, 3>& registers, const int operand) { return operand; };
|
||||
break;
|
||||
case ChronospatialComputerOperandType::Combo :
|
||||
operandFunctor_ = [](const std::array<long long, 3>& registers, const int operand)
|
||||
operandFunctor_ = [](const std::array<int64_t, 3>& registers, const int operand)
|
||||
{ return operand < 4 ? operand : registers[static_cast<size_t>(operand - 4)]; };
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -57,12 +57,12 @@ void MullData::updateResult()
|
||||
}
|
||||
}
|
||||
|
||||
long long int MullData::getResultPart1() const
|
||||
int64_t MullData::getResultPart1() const
|
||||
{
|
||||
return part1_;
|
||||
}
|
||||
|
||||
long long int MullData::getResultPart2() const
|
||||
int64_t MullData::getResultPart2() const
|
||||
{
|
||||
return part2_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user