Commit ef6fd5fa authored by Christophe Massiot's avatar Christophe Massiot

Fix overflow in date calculation on 32 bit platforms.

parent ade0d273
......@@ -155,7 +155,7 @@ static uint64_t _wall_Date( bool b_realtime )
(void)clock_gettime( CLOCK_REALTIME, &ts );
return ((uint64_t)ts.tv_sec * (uint64_t)27000000)
+ (uint64_t)(ts.tv_nsec * 27 / 1000);
+ ((uint64_t)ts.tv_nsec * 27 / 1000);
#else
struct timeval tv_date;
......
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