projects
/
platform
/
upstream
/
armnn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b63973e
)
Fixed unsigned to signed conversion warning
author
Kohei Takahashi
<flast@flast.jp>
Fri, 31 Aug 2018 08:53:11 +0000
(17:53 +0900)
committer
Matthew Bentham
<matthew.bentham@arm.com>
Mon, 22 Oct 2018 15:57:54 +0000
(16:57 +0100)
Change-Id: I6ff147e4418e8d0252bedfd1cf4a3bc3bc38ada7
include/armnn/TypesUtils.hpp
patch
|
blob
|
history
diff --git
a/include/armnn/TypesUtils.hpp
b/include/armnn/TypesUtils.hpp
index
c7dd856
..
68ad455
100644
(file)
--- 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]);
}