Skip to content
Snippets Groups Projects
Commit ece1ba64 authored by Karsten Suehring's avatar Karsten Suehring
Browse files

improve variable types for non-Windows timediff() function

parent 7fa1ee4e
No related branches found
Tags JM-14.0
1 merge request!6Compile fixes for newer compilers
Pipeline #9480 passed
......@@ -64,15 +64,15 @@ void init_time(void)
int64 timediff(TIME_T* start, TIME_T* end)
{
long t1, t2;
int64 t1, t2;
t1 = end->tv_sec - start->tv_sec;
t2 = end->tv_usec - start->tv_usec;
return (int64) t2 + (int64) t1 * (int64) 1000000;
return t2 + t1 * 1000000;
}
int64 timenorm(int64 cur_time)
{
return (int64)(cur_time / (int64) 1000);
return cur_time / 1000;
}
#endif
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