mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-07 19:34:56 +00:00
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:
parent
7c9e850235
commit
9ee3843f35
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user