Skip to content
Snippets Groups Projects
Commit 5f3a79c0 authored by deuce's avatar deuce
Browse files

Do *not* cast to a long int!

parent b81e4138
Branches
Tags
No related merge requests found
......@@ -515,7 +515,7 @@ long double DLLCALL xp_timer(void)
ret /= ((long double)freq.HighPart*4294967296)+((long double)freq.LowPart);
#else
/* In MSVC, a long double does NOT have 19 decimals of precision */
ret=((long int)(tick.QuadPart/freq.QuadPart))
ret=(tick.QuadPart/freq.QuadPart)
+(((long double)(tick.QuadPart%freq.QuadPart))/freq.QuadPart);
#endif
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment