aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/MEMUtils.cpp
diff options
context:
space:
mode:
authorGian Marco Iodice <gianmarco.iodice@arm.com>2018-11-27 12:09:31 +0000
committerGian Marco Iodice <gianmarco.iodice@arm.com>2018-11-27 12:09:31 +0000
commit0a80d92bcdbdc4f3974d0fbcaa529a71ed539559 (patch)
tree01742c9d19761e9021bef4c39d0f7d12f2c5efae /src/runtime/MEMUtils.cpp
parent0c71d0ba75a11720e39e2a7163e993d51350683d (diff)
downloadComputeLibrary-0a80d92bcdbdc4f3974d0fbcaa529a71ed539559.tar.gz
COMPMID-1810: Fix std::stoul in MemUtils.cpp
Change-Id: Icadce1298f9e52dc6f4b0adc1556ede9dd9a2a2e
Diffstat (limited to 'src/runtime/MEMUtils.cpp')
-rw-r--r--src/runtime/MEMUtils.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/runtime/MEMUtils.cpp b/src/runtime/MEMUtils.cpp
index ad00070935..a45f9c80c1 100644
--- a/src/runtime/MEMUtils.cpp
+++ b/src/runtime/MEMUtils.cpp
@@ -54,22 +54,22 @@ void parse_mem_info(size_t &total, size_t &free, size_t &buffer)
if(std::regex_search(str, match, std::regex("MemTotal: (.*)kB")) && match.size() > 1)
{
const std::string result = match.str(1);
- total = std::stoul(result, nullptr, 0);
+ total = arm_compute::support::cpp11::stoul(result, nullptr);
}
if(std::regex_search(str, match, std::regex("MemFree: (.*)kB")) && match.size() > 1)
{
const std::string result = match.str(1);
- memfree = std::stoul(result, nullptr, 0);
+ memfree = arm_compute::support::cpp11::stoul(result, nullptr);
}
if(std::regex_search(str, match, std::regex("Buffers: (.*)kB")) && match.size() > 1)
{
const std::string result = match.str(1);
- buffer = std::stoul(result, nullptr, 0);
+ buffer = arm_compute::support::cpp11::stoul(result, nullptr);
}
if(std::regex_search(str, match, std::regex("Cached: (.*)kB")) && match.size() > 1)
{
const std::string result = match.str(1);
- memcache = std::stoul(result, nullptr, 0);
+ memcache = arm_compute::support::cpp11::stoul(result, nullptr);
}
free = memfree + (buffer + memcache);
}