Sdk/Algortihm: Fix 64bits shift
This commit is contained in:
parent
52033c8697
commit
817064cbeb
|
|
@ -21,7 +21,7 @@ namespace Ndk
|
|||
static_assert(N-1 <= sizeof(ComponentId), "Name too long for this size of component id");
|
||||
|
||||
ComponentId componentId = 0;
|
||||
for (unsigned int i = 0; i < N; ++i)
|
||||
for (unsigned int i = 0; i < N - 1; ++i)
|
||||
componentId |= static_cast<ComponentId>(name[i]) << i*8;
|
||||
|
||||
return componentId;
|
||||
|
|
|
|||
Loading…
Reference in New Issue