Use auto for timestamp_counter tick type

Co-authored-by: Maurice Heumann <MauriceHeumann@gmail.com>
This commit is contained in:
Soham Nandy
2025-04-11 12:12:56 +05:30
committed by GitHub
parent 640cd500c3
commit ea7f6a68c8

View File

@@ -448,7 +448,7 @@ void windows_emulator::setup_hooks()
});
this->emu().hook_instruction(x64_hookable_instructions::rdtsc, [&] {
uint64_t ticks = this->clock_->timestamp_counter();
const auto ticks = this->clock_->timestamp_counter();
this->emu().reg(x64_register::rax, ticks & 0xFFFFFFFF);
this->emu().reg(x64_register::rdx, (ticks >> 32) & 0xFFFFFFFF);
return instruction_hook_continuation::skip_instruction;