From ea7f6a68c819b3d0310eb2e9a51456745681455b Mon Sep 17 00:00:00 2001 From: Soham Nandy Date: Fri, 11 Apr 2025 12:12:56 +0530 Subject: [PATCH] Use auto for timestamp_counter tick type Co-authored-by: Maurice Heumann --- src/windows-emulator/windows_emulator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/windows-emulator/windows_emulator.cpp b/src/windows-emulator/windows_emulator.cpp index 4adbb7ab..8bdb30bb 100644 --- a/src/windows-emulator/windows_emulator.cpp +++ b/src/windows-emulator/windows_emulator.cpp @@ -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;