Browse Source

CoreTiming: avoid overflow

nce_cpp
wwylele 10 years ago
parent
commit
9abf787fed
  1. 2
      src/core/core_timing.h

2
src/core/core_timing.h

@ -26,7 +26,7 @@
extern int g_clock_rate_arm11; extern int g_clock_rate_arm11;
inline s64 msToCycles(int ms) { inline s64 msToCycles(int ms) {
return g_clock_rate_arm11 / 1000 * ms;
return (s64)g_clock_rate_arm11 / 1000 * ms;
} }
inline s64 msToCycles(float ms) { inline s64 msToCycles(float ms) {

Loading…
Cancel
Save