mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 05:37:54 +00:00
base: fix conversion error in Bitset_2::get()
Ref genodelabs/genode#4753
This commit is contained in:
parent
0212f94809
commit
da0dbd901c
@ -276,7 +276,8 @@ struct Genode::Bitset_2
|
||||
template <typename T>
|
||||
static inline access_t get(T const reg)
|
||||
{
|
||||
return Bits_0::get(reg) | (Bits_1::get(reg) << Bits_0::WIDTH);
|
||||
return (access_t)
|
||||
(Bits_0::get(reg) | (Bits_1::get(reg) << Bits_0::WIDTH));
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user