From 0a80d92bcdbdc4f3974d0fbcaa529a71ed539559 Mon Sep 17 00:00:00 2001 From: Gian Marco Iodice Date: Tue, 27 Nov 2018 12:09:31 +0000 Subject: COMPMID-1810: Fix std::stoul in MemUtils.cpp Change-Id: Icadce1298f9e52dc6f4b0adc1556ede9dd9a2a2e --- src/runtime/MEMUtils.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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); } -- cgit v1.2.1