Przeglądaj źródła

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

Subv 9 lat temu
rodzic
commit
8a9a4e2c42
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/core/hw/gpu.cpp

+ 1 - 1
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;