mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 22:45:45 +00:00
CoreTiming: avoid overflow
This commit is contained in:
parent
eaf9f27128
commit
9abf787fed
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue