Ndk: Fixed warnings

Former-commit-id: 64509f0d59d83f4c04a09fe7e7913d94a940f191
This commit is contained in:
Lynix
2015-05-04 13:52:37 +02:00
parent 385b7fc3fd
commit 5e954113ef
7 changed files with 23 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ namespace Ndk
static_assert(N-1 <= sizeof(ComponentId), "Name too long for this size of component id");
ComponentId componentId = 0;
for (int i = 0; i < N; ++i)
for (unsigned int i = 0; i < N; ++i)
componentId |= static_cast<ComponentId>(name[i]) << i*8;
return componentId;