aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Hughes <robert.hughes@arm.com>2021-11-05 15:17:45 +0000
committerTeresaARM <teresa.charlinreyes@arm.com>2021-11-05 19:07:40 +0000
commitd3b94d305fddd3bbbdf718685084087e4b92ca7f (patch)
tree38f54e3ee30c0be8a9b1d4e787d015186d27bd0f
parent6642b8a1f23c5f7333abf1133983eb3134af7c00 (diff)
downloadarmnn-d3b94d305fddd3bbbdf718685084087e4b92ca7f.tar.gz
Fix use of non-standard "uint" type
Change-Id: I474e5e40550d61f873fd930fe33b0e1e9f9992cc Signed-off-by: Rob Hughes <robert.hughes@arm.com>
-rw-r--r--src/backends/backendsCommon/test/MemoryManagerTests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backends/backendsCommon/test/MemoryManagerTests.cpp b/src/backends/backendsCommon/test/MemoryManagerTests.cpp
index b5f2db4009..c873499ef3 100644
--- a/src/backends/backendsCommon/test/MemoryManagerTests.cpp
+++ b/src/backends/backendsCommon/test/MemoryManagerTests.cpp
@@ -66,7 +66,7 @@ TEST_CASE("MemoryManagerTest")
std::vector<size_t> offsets(numTensors);
std::iota(std::begin(offsets), std::end(offsets), 0);
- for (uint idx = 0; idx < tensorMemoryPointerVector.size(); ++idx)
+ for (uint32_t idx = 0; idx < tensorMemoryPointerVector.size(); ++idx)
{
tensorMemoryVector.emplace_back(TensorMemory{offsets[idx], nullptr, 0});
tensorMemoryPointerVector[idx] = &tensorMemoryVector[idx];
@@ -90,7 +90,7 @@ TEST_CASE("MemoryManagerTest")
CHECK(customAllocator.m_CounterAllocate == bufferStorageVector.size());
for (const auto& bufferStorage : bufferStorageVector)
{
- uint idx = 0;
+ uint32_t idx = 0;
for (auto tensorMemory : bufferStorage.m_TensorMemoryVector)
{
auto value = reinterpret_cast<uint8_t *>(tensorMemory->m_Data);