Fix static analysis issues 46/296446/1
authorChanggyu Choi <changyu.choi@samsung.com>
Fri, 28 Jul 2023 01:54:38 +0000 (10:54 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Fri, 28 Jul 2023 01:54:38 +0000 (10:54 +0900)
Changes:
 - Changes method to stoull.

Change-Id: I802be7a7e343b219f1cded40ec9560c2886ee129
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
src/app-defined-loader/app-defined-loader.cc

index 01e73e0..57e7ffd 100644 (file)
@@ -68,7 +68,7 @@ class AppDefinedLoader {
     IniParser parser(PATH_CONF);
     auto value = parser.Get(SECTION_MEMORY, KEY_THRESHOLD);
     if (!value.empty())
-      threshold_ = static_cast<uint64_t>(std::stoi(value));
+      threshold_ = static_cast<uint64_t>(std::stoull(value));
     else
       _W("Failed to get threshold");
   }