From 7920207bdba85370f6c8c5558c897690b57eda3d Mon Sep 17 00:00:00 2001 From: Michael Mueller Date: Tue, 18 Oct 2022 15:36:53 +0200 Subject: [PATCH] thread_test: Resolved ambiguity of uint_16t. --- repos/mml/src/app/thread_test/thread_test.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/repos/mml/src/app/thread_test/thread_test.cc b/repos/mml/src/app/thread_test/thread_test.cc index 18ecad18f7..0b62a708ae 100644 --- a/repos/mml/src/app/thread_test/thread_test.cc +++ b/repos/mml/src/app/thread_test/thread_test.cc @@ -2,6 +2,7 @@ #include #include #include +#include #include #include #include @@ -17,13 +18,13 @@ class Thread_test::Test_thread : public Thread { private: Env &_env; - uint16_t _id; + Genode::uint16_t _id; Timer::Connection _timer{_env}; public: List_element _list_element{this}; - Test_thread(Env &env, uint16_t id, Location const &location) + Test_thread(Env &env, Genode::uint16_t id, Location const &location) : Thread(env, Name("test_", location.xpos(), "x", location.ypos()), 4 * 4096, location, Weight(), env.cpu()), _env(env), _id(id) @@ -71,7 +72,7 @@ public: for (unsigned i = 1; i < space.total(); i++) { Affinity::Location location = env.cpu().affinity_space().location_of_index(i); - Test_thread *thread = new (_heap) Test_thread(env, (uint16_t)i, location); + Test_thread *thread = new (_heap) Test_thread(env, (Genode::uint16_t)i, location); thread->start(); _threads.insert(&thread->_list_element);