Skip to content
Snippets Groups Projects
Commit 489c0c3c authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

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

parent 7d1fc057
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2724 failed
......@@ -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);
}
/****************************************************************************/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment