From 8930ce765d8f3ab3b4c5e4882d509779c671bed9 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Tue, 4 Dec 2012 16:44:47 +0100 Subject: [PATCH] Resolve 'size_t' ambiguity When building core as hybrid Linux/Genode program, 'size_t' becomes ambiguous. --- base/src/core/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/src/core/main.cc b/base/src/core/main.cc index bd9e9b6d58..84bf9056ab 100644 --- a/base/src/core/main.cc +++ b/base/src/core/main.cc @@ -222,7 +222,7 @@ int main() /* transfer all left memory to init, but leave some memory left for core */ /* NOTE: exception objects thrown in core components are currently allocated on core's heap and not accounted by the component's meta data allocator */ - size_t init_quota = platform()->ram_alloc()->avail() - 72*1024; + Genode::size_t init_quota = platform()->ram_alloc()->avail() - 72*1024; env()->ram_session()->transfer_quota(init_ram_session_cap, init_quota); PDBG("transferred %zd MB to init", init_quota / (1024*1024));