Fix xenia-core build on macOS

This commit is contained in:
Conrad Kramer
2021-10-06 14:55:58 -07:00
committed by Triang3l
parent 548758857f
commit 2962a266b5
8 changed files with 13 additions and 50 deletions

View File

@@ -80,7 +80,7 @@ uint64_t Clock::host_tick_frequency_raw() {
// For some CPUs, Crystal frequency is not reported.
if (ratio_num && ratio_den && cryst_freq) {
// If it is, calculate the TSC frequency
auto tsc_freq = cryst_freq * ratio_num / ratio_den;
return cryst_freq * ratio_num / ratio_den;
}
}