From 48cbe050f7050a8c6543786c9909d87f98ebde40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=BCller?= Date: Mon, 4 Jul 2022 16:25:50 +0200 Subject: [PATCH] Fixe type errors. --- repos/mml/src/app/posix_playground/main.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/repos/mml/src/app/posix_playground/main.cc b/repos/mml/src/app/posix_playground/main.cc index 3693857c21..4f175e8ef8 100644 --- a/repos/mml/src/app/posix_playground/main.cc +++ b/repos/mml/src/app/posix_playground/main.cc @@ -37,10 +37,10 @@ int main(void) { std::vector thread_objs(4); std::vector> thread_list(4); - for (int i = 0; i < 4; i++) { - Posix_playground::Chrono_thread thread_objs[i] = new Posix_playground::Chrono_thread(i); + for (std::uint16_t i = 0; i < 4; i++) { + thread_objs[i] = new Posix_playground::Chrono_thread(i); auto thread = std::make_unique([&] - { thread_objs[i].execute(); }); + { thread_objs[i]->execute(); }); thread_list.push_back(thread); thread->join(); }