Remove build warning messages 85/279485/2
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 10 Aug 2022 06:37:08 +0000 (15:37 +0900)
committerHwanKyu Jhun <h.jhun@samsung.com>
Wed, 10 Aug 2022 06:55:45 +0000 (06:55 +0000)
Narrowing conversion warning is fixed. The missed header file is cctype
is included.

Change-Id: I13a86fa5d483f81b205040ece6022675efeeb1c3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/aul_comp_info.cc

index 607603e..36204ed 100644 (file)
@@ -18,6 +18,7 @@
 
 #include <vconf.h>
 
+#include <cctype>
 #include <memory>
 #include <string>
 #include <vector>
@@ -55,8 +56,8 @@ std::string GetSystemLocale() {
         lang[0],
         lang[1],
         '-',
-        std::tolower(lang[3]),
-        std::tolower(lang[4])
+        static_cast<char>(std::tolower(static_cast<int>(lang[3]))),
+        static_cast<char>(std::tolower(static_cast<int>(lang[4])))
       });
 }