Selaa lähdekoodia

sort out units to make things happier

Colin Davidson 2 vuotta sitten
vanhempi
commit
45b742be23
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      core/time/tsc_windows.odin

+ 1 - 1
core/time/tsc_windows.odin

@@ -24,6 +24,6 @@ _get_tsc_frequency :: proc "contextless" () -> u64 {
 	qpc_frequency: win32.LARGE_INTEGER
 	qpc_frequency: win32.LARGE_INTEGER
 	win32.QueryPerformanceFrequency(&qpc_frequency)
 	win32.QueryPerformanceFrequency(&qpc_frequency)
 
 
-	frequency = ((tsc_end - tsc_begin) * qpc_frequency) / (qpc_end - qpc_begin)
+	frequency = u64((u128(tsc_end - tsc_begin) * u128(qpc_frequency)) / u128(qpc_end - qpc_begin))
 	return frequency
 	return frequency
 }
 }