From b8e2253e5f548344413fcc76e584a60a24964898 Mon Sep 17 00:00:00 2001 From: Martin Stein Date: Mon, 5 Jun 2017 11:55:34 +0200 Subject: [PATCH] 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 --- repos/os/src/lib/timeout/timer_connection_time.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/os/src/lib/timeout/timer_connection_time.cc b/repos/os/src/lib/timeout/timer_connection_time.cc index 6aeab59b57..a467c30aac 100644 --- a/repos/os/src/lib/timeout/timer_connection_time.cc +++ b/repos/os/src/lib/timeout/timer_connection_time.cc @@ -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();