Commit 7a3dcb6c authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Fix MSVC warning in xp_timer64()

genwrap.c(855): warning C4244: '=': conversion from 'LONGLONG' to 'uint32_t', possible loss of data
parent cff6d991
...@@ -852,7 +852,7 @@ uint64_t xp_timer64(void) ...@@ -852,7 +852,7 @@ uint64_t xp_timer64(void)
intable = (freq.QuadPart % 1000) == 0; intable = (freq.QuadPart % 1000) == 0;
if (intable) if (intable)
msfreq = freq.QuadPart / 1000; msfreq = (uint32_t)(freq.QuadPart / 1000);
else else
msdfreq = ((double)freq.QuadPart) / 1000; msdfreq = ((double)freq.QuadPart) / 1000;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment