Fixed Linux build
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40895
This commit is contained in:
parent
5193fe5a4e
commit
db97cf2cc8
@ -272,7 +272,7 @@ static cell_t GetSysTickCount(IPluginContext *pContext, const cell_t *params)
|
|||||||
tms tm;
|
tms tm;
|
||||||
clock_t ticks = times(&tm);
|
clock_t ticks = times(&tm);
|
||||||
long ticks_per_sec = sysconf(_SC_CLK_TCK);
|
long ticks_per_sec = sysconf(_SC_CLK_TCK);
|
||||||
double ftcks = (double)ticks / (double)ticks_per_sec;
|
double fticks = (double)ticks / (double)ticks_per_sec;
|
||||||
fticks *= 1000.0f;
|
fticks *= 1000.0f;
|
||||||
if (fticks > INT_MAX)
|
if (fticks > INT_MAX)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user