timer: fix conversion error in timeout handling

clang complains: comparison is always false due to limited range of data type

Issue #3022
This commit is contained in:
Alexander Boettcher 2018-10-25 08:42:39 +02:00 committed by Christian Helmuth
parent 7c9e850235
commit 9ee3843f35
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ class Timer::Session_component : public Genode::Rpc_object<Session>,
* Alarm framework takes solely relative time values, please
* remove this.
*/
Microseconds typed_us(us > ~0UL >> 1 ? ~0UL >> 1 : us);
Microseconds typed_us((us > ~0U >> 1) ? ~0U >> 1 : us);
_timeout.schedule_one_shot(typed_us, *this);
}