Fixed unsigned to signed conversion warning
authorKohei Takahashi <flast@flast.jp>
Fri, 31 Aug 2018 08:53:11 +0000 (17:53 +0900)
committerMatthew Bentham <matthew.bentham@arm.com>
Mon, 22 Oct 2018 15:57:54 +0000 (16:57 +0100)
Change-Id: I6ff147e4418e8d0252bedfd1cf4a3bc3bc38ada7

include/armnn/TypesUtils.hpp

index c7dd856..68ad455 100644 (file)
@@ -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]);
     }