diff options
| author | 2016-07-20 20:49:01 +0800 | |
|---|---|---|
| committer | 2016-07-23 14:30:23 +0300 | |
| commit | d63a76f4ce47962d7f191f3d4911c12344c4d249 (patch) | |
| tree | 60611fb27fc92610176216a8f947cf5bd82d9b63 /src/core/core_timing.h | |
| parent | HLE: implement system time (diff) | |
| download | yuzu-d63a76f4ce47962d7f191f3d4911c12344c4d249.tar.gz yuzu-d63a76f4ce47962d7f191f3d4911c12344c4d249.tar.xz yuzu-d63a76f4ce47962d7f191f3d4911c12344c4d249.zip | |
CoreTiming: avoid overflow
Diffstat (limited to 'src/core/core_timing.h')
| -rw-r--r-- | src/core/core_timing.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/core_timing.h b/src/core/core_timing.h index 64f5b06d9..3d8a7d0c0 100644 --- a/src/core/core_timing.h +++ b/src/core/core_timing.h | |||
| @@ -26,7 +26,7 @@ | |||
| 26 | extern int g_clock_rate_arm11; | 26 | extern int g_clock_rate_arm11; |
| 27 | 27 | ||
| 28 | inline s64 msToCycles(int ms) { | 28 | inline s64 msToCycles(int ms) { |
| 29 | return g_clock_rate_arm11 / 1000 * ms; | 29 | return (s64)g_clock_rate_arm11 / 1000 * ms; |
| 30 | } | 30 | } |
| 31 | 31 | ||
| 32 | inline s64 msToCycles(float ms) { | 32 | inline s64 msToCycles(float ms) { |