Commit 489c0c3c authored by Deucе's avatar Deucе 👌🏾
Browse files

Borland doesn't have roundl() so do terrible things instead.

parent 7d1fc057
Pipeline #2724 failed with stage
in 4 minutes and 47 seconds
......@@ -695,14 +695,9 @@ char* os_cmdshell(void)
/********************************************************/
clock_t msclock(void)
{
long double t = roundl(xp_timer() * 1000);
uint64_t = (uint64_t)(xp_timer() * 1000);
if (sizeof(clock_t) < 8) {
while (t > INT32_MAX)
t -= UINT32_MAX;
}
return (clock_t)t;
return (clock_t)(t&0xffffffff);
}
/****************************************************************************/
......
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