aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Takahashi <flast@flast.jp>2018-08-31 17:53:11 +0900
committerMatthew Bentham <matthew.bentham@arm.com>2018-10-22 16:57:54 +0100
commit430c6d6e7e4581f82aff47f10c72b586ac530a94 (patch)
tree278ca80eebaa4f8ce0fd648366e3ed1c2528b9c7
parentb63973ee1134336434a490fc9af8bba6cde79820 (diff)
downloadarmnn-430c6d6e7e4581f82aff47f10c72b586ac530a94.tar.gz
Fixed unsigned to signed conversion warning
Change-Id: I6ff147e4418e8d0252bedfd1cf4a3bc3bc38ada7
-rw-r--r--include/armnn/TypesUtils.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/armnn/TypesUtils.hpp b/include/armnn/TypesUtils.hpp
index c7dd856aad..68ad45546d 100644
--- a/include/armnn/TypesUtils.hpp
+++ b/include/armnn/TypesUtils.hpp
@@ -87,11 +87,11 @@ constexpr unsigned int GetDataTypeSize(DataType dataType)
}
}
-template <int N>
+template <unsigned N>
constexpr bool StrEqual(const char* strA, const char (&strB)[N])
{
bool isEqual = true;
- for (int i = 0; isEqual && (i < N); ++i)
+ for (unsigned i = 0; isEqual && (i < N); ++i)
{
isEqual = (strA[i] == strB[i]);
}