Skip to content
Snippets Groups Projects
Commit d63a76f4 authored by wwylele's avatar wwylele
Browse files

CoreTiming: avoid overflow

parent 00c34e4d
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,7 @@ ...@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment