diff options
author | Kohei Takahashi <flast@flast.jp> | 2018-08-31 17:53:11 +0900 |
---|---|---|
committer | Matthew Bentham <matthew.bentham@arm.com> | 2018-10-22 16:57:54 +0100 |
commit | 430c6d6e7e4581f82aff47f10c72b586ac530a94 (patch) | |
tree | 278ca80eebaa4f8ce0fd648366e3ed1c2528b9c7 /include/armnn | |
parent | b63973ee1134336434a490fc9af8bba6cde79820 (diff) | |
download | armnn-430c6d6e7e4581f82aff47f10c72b586ac530a94.tar.gz |
Fixed unsigned to signed conversion warning
Change-Id: I6ff147e4418e8d0252bedfd1cf4a3bc3bc38ada7
Diffstat (limited to 'include/armnn')
-rw-r--r-- | include/armnn/TypesUtils.hpp | 4 |
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]); } |