瀏覽代碼

android/config: Remove uncaught usage of stoul

lat9nq 2 年之前
父節點
當前提交
85e1754728
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/android/app/src/main/jni/config.cpp

+ 1 - 1
src/android/app/src/main/jni/config.cpp

@@ -282,7 +282,7 @@ void Config::ReadValues() {
     std::stringstream ss(title_list);
     std::string line;
     while (std::getline(ss, line, '|')) {
-        const auto title_id = std::stoul(line, nullptr, 16);
+        const auto title_id = std::strtoul(line.c_str(), nullptr, 16);
         const auto disabled_list = config->Get("AddOns", "disabled_" + line, "");
 
         std::stringstream inner_ss(disabled_list);