From baa130db1768583bab0271e58e7a3d5cb55f2388 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=BCller?= Date: Mon, 11 Jul 2022 12:19:35 +0200 Subject: [PATCH] Changed type for attributes _a and _b. --- repos/hello_tutorial/src/hello/client/main.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/repos/hello_tutorial/src/hello/client/main.cc b/repos/hello_tutorial/src/hello/client/main.cc index 96cdf82701..46f3bab35c 100644 --- a/repos/hello_tutorial/src/hello/client/main.cc +++ b/repos/hello_tutorial/src/hello/client/main.cc @@ -21,8 +21,8 @@ struct HelloClient { Genode::Env &_env; Hello::Connection &_hello; - int _a; - int _b; + unsigned short _a; + unsigned short _b; Genode::Attached_rom_dataspace _config{_env, "config"}; @@ -37,8 +37,8 @@ struct HelloClient { return; } - _a = _config.xml().attribute_value("a", (int)2); - _b = _config.xml().attribute_value("b", (int)5); + _a = _config.xml().attribute_value("a", (unsigned short)2); + _b = _config.xml().attribute_value("b", (unsigned short)5); } Genode::Signal_handler _config_handler {