timeout: fix bug in interpolation

We incorrectly used 'unsigned long' (which is 32 or 64 bit depending on
the CPU architecture) for a timestamp (which is always 64 bit) in the
timer-connection implementation.

Ref #2435
This commit is contained in:
Martin Stein 2017-06-05 11:55:34 +02:00 committed by Christian Helmuth
parent 5e1fb42b54
commit b8e2253e5f

View File

@ -96,7 +96,7 @@ Duration Timer::Connection::curr_time()
if (_interpolation_quality == MAX_INTERPOLATION_QUALITY)
{
/* locally buffer real-time related members */
unsigned long const ts = _ts;
Timestamp const ts = _ts;
unsigned long const us_to_ts_factor = _us_to_ts_factor;
lock_guard.destruct();