Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

GPU/Warnings: Explicitly cast the screen refresh ticks to u64.

Subv1c6f3ee4ba50
diff --git a/src/core/hw/gpu.cpp b/src/core/hw/gpu.cpp
index 6838e449ca..83ad9d898a 100644
--- a/src/core/hw/gpu.cpp
+++ b/src/core/hw/gpu.cpp
@@ -29,7 +29,7 @@ namespace GPU {
Regs g_regs;
/// 268MHz CPU clocks / 60Hz frames per second
-const u64 frame_ticks = BASE_CLOCK_RATE_ARM11 / SCREEN_REFRESH_RATE;
+const u64 frame_ticks = static_cast<u64>(BASE_CLOCK_RATE_ARM11 / SCREEN_REFRESH_RATE);
/// Event id for CoreTiming
static int vblank_event;