hw: prevent warning about conversion narrowing
This commit is contained in:
parent
8f577e9d25
commit
6f2afb9b44
|
@ -29,7 +29,7 @@ namespace Board {
|
||||||
|
|
||||||
enum { UART_BASE, UART_CLOCK };
|
enum { UART_BASE, UART_CLOCK };
|
||||||
struct Serial : Hw::Riscv_uart {
|
struct Serial : Hw::Riscv_uart {
|
||||||
Serial(unsigned, unsigned, unsigned) {} };
|
Serial(Genode::addr_t, Genode::size_t, unsigned) {} };
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename E, unsigned B, unsigned S>
|
template <typename E, unsigned B, unsigned S>
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
namespace Board {
|
namespace Board {
|
||||||
enum { UART_BASE, UART_CLOCK };
|
enum { UART_BASE, UART_CLOCK };
|
||||||
struct Serial : Hw::Riscv_uart {
|
struct Serial : Hw::Riscv_uart {
|
||||||
Serial(unsigned, unsigned, unsigned) {} };
|
Serial(Genode::addr_t, Genode::size_t, unsigned) {} };
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* _CORE__SPEC__RISCV__BOARD_H_ */
|
#endif /* _CORE__SPEC__RISCV__BOARD_H_ */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user