mirror of
https://github.com/holub/mame
synced 2025-05-20 20:58:51 +03:00
Fix gcc 64bit compile issue
This commit is contained in:
parent
45a3d96248
commit
acae0b91f3
@ -191,7 +191,7 @@ astring *_profiler_get_text(running_machine *machine, astring *string)
|
||||
switches = 0;
|
||||
for (curmem = 0; curmem < ARRAY_LENGTH(global_profiler.data); curmem++)
|
||||
switches += global_profiler.data[curmem].context_switches;
|
||||
astring_catprintf(string, "%d CPU switches\n", switches / ARRAY_LENGTH(global_profiler.data));
|
||||
astring_catprintf(string, "%d CPU switches\n", switches / (int) ARRAY_LENGTH(global_profiler.data));
|
||||
}
|
||||
|
||||
profiler_mark(PROFILER_END);
|
||||
|
Loading…
Reference in New Issue
Block a user