Change long long int to fixed width integer type int64_t

This commit is contained in:
2025-05-22 16:12:56 +02:00
parent 97b61836d8
commit 0b70db7670
35 changed files with 93 additions and 96 deletions

View File

@@ -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;
}

View File

@@ -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_;
}