Allow for hex input in file with debug keys

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2021-02-26 13:44:43 +00:00
committed by Compute-Runtime-Automation
parent 583a57c159
commit 35064c3dea
4 changed files with 12 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2017-2020 Intel Corporation
* Copyright (C) 2017-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -36,7 +36,7 @@ int64_t SettingsFileReader::getSetting(const char *settingName, int64_t defaultV
std::map<std::string, std::string>::iterator it = settingStringMap.find(std::string(settingName));
if (it != settingStringMap.end()) {
value = atoll(it->second.c_str());
value = strtoll(it->second.c_str(), nullptr, 0);
}
return value;