From 28f81c4a9ccbcbc512963255b2657f6c622056ef Mon Sep 17 00:00:00 2001 From: Martin Stein Date: Tue, 18 Dec 2012 11:50:04 +0100 Subject: [PATCH] base: avoid shift warning in register array Fix #422 --- base/include/util/mmio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/include/util/mmio.h b/base/include/util/mmio.h index da78c410b..5cec6335c 100644 --- a/base/include/util/mmio.h +++ b/base/include/util/mmio.h @@ -162,7 +162,7 @@ namespace Genode ITEM_WIDTH = _ITEM_WIDTH, ITEM_WIDTH_LOG2 = Item::WIDTH_LOG2, MAX_INDEX = ITEMS - 1, - ITEM_MASK = (1 << ITEM_WIDTH) - 1, + ITEM_MASK = (1ULL << ITEM_WIDTH) - 1, }; /* analogous to 'Mmio::Register::Register_base' */