about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-06-13 15:51:15 +0200
committerptitSeb <sebastien.chev@gmail.com>2024-06-13 15:51:15 +0200
commita3d09e95d5f3423bbaab0c3a08b9e1fbbf77d582 (patch)
treeff398d59bd552f10bb6ca85e0c7fdd834c7837cd /src
parent626846c37bbc9814f05f7c21315b6d05a515e517 (diff)
downloadbox64-a3d09e95d5f3423bbaab0c3a08b9e1fbbf77d582.tar.gz
box64-a3d09e95d5f3423bbaab0c3a08b9e1fbbf77d582.zip
Fixed an issue with BOX64_RDTSC_1GHZ being always active
Diffstat (limited to 'src')
-rw-r--r--src/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.c b/src/core.c
index 9d6b4042..3d940b4d 100644
--- a/src/core.c
+++ b/src/core.c
@@ -517,7 +517,7 @@ void computeRDTSC()
     printf_log(LOG_INFO, "Will use time-based emulation for rdtsc, even if hardware counter are available\n");
     #endif
     uint64_t freq = ReadTSCFrequency(NULL);
-    if(freq<(box64_rdtsc_1ghz)?1000000000LL:1000000) {
+    if(freq<((box64_rdtsc_1ghz)?1000000000LL:1000000)) {
         box64_rdtsc = 1;
         if(hardware) printf_log(LOG_INFO, "Hardware counter to slow (%d kHz), not using it\n", freq/1000);
         hardware = 0;