From 430c6d6e7e4581f82aff47f10c72b586ac530a94 Mon Sep 17 00:00:00 2001 From: Kohei Takahashi Date: Fri, 31 Aug 2018 17:53:11 +0900 Subject: Fixed unsigned to signed conversion warning Change-Id: I6ff147e4418e8d0252bedfd1cf4a3bc3bc38ada7 --- include/armnn/TypesUtils.hpp | 4 ++-- 1 file 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 +template 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]); } -- cgit v1.2.1