diff --git a/repos/base/include/util/register.h b/repos/base/include/util/register.h index b528e2243f..32e9789b5e 100644 --- a/repos/base/include/util/register.h +++ b/repos/base/include/util/register.h @@ -276,7 +276,8 @@ struct Genode::Bitset_2 template 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)); } };