From 6f2afb9b44761e5e0df226a54e0f40dd372f022e Mon Sep 17 00:00:00 2001 From: Christian Helmuth Date: Fri, 16 Jun 2017 13:17:03 +0200 Subject: [PATCH] hw: prevent warning about conversion narrowing --- repos/base-hw/src/bootstrap/spec/riscv/board.h | 2 +- repos/base-hw/src/core/spec/riscv/board.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/repos/base-hw/src/bootstrap/spec/riscv/board.h b/repos/base-hw/src/bootstrap/spec/riscv/board.h index a6eabdfc87..29d6105be5 100644 --- a/repos/base-hw/src/bootstrap/spec/riscv/board.h +++ b/repos/base-hw/src/bootstrap/spec/riscv/board.h @@ -29,7 +29,7 @@ namespace Board { enum { UART_BASE, UART_CLOCK }; struct Serial : Hw::Riscv_uart { - Serial(unsigned, unsigned, unsigned) {} }; + Serial(Genode::addr_t, Genode::size_t, unsigned) {} }; } template diff --git a/repos/base-hw/src/core/spec/riscv/board.h b/repos/base-hw/src/core/spec/riscv/board.h index 908413fa3e..01c956e872 100644 --- a/repos/base-hw/src/core/spec/riscv/board.h +++ b/repos/base-hw/src/core/spec/riscv/board.h @@ -19,7 +19,7 @@ namespace Board { enum { UART_BASE, UART_CLOCK }; struct Serial : Hw::Riscv_uart { - Serial(unsigned, unsigned, unsigned) {} }; + Serial(Genode::addr_t, Genode::size_t, unsigned) {} }; } #endif /* _CORE__SPEC__RISCV__BOARD_H_ */