Skip to content
This repository was archived by the owner on Mar 12, 2021. It is now read-only.

Entity::ID::Value() #74

Open
michalkelnar opened this issue Aug 16, 2016 · 1 comment
Open

Entity::ID::Value() #74

michalkelnar opened this issue Aug 16, 2016 · 1 comment

Comments

@michalkelnar
Copy link

I think there is mistake in value() member. It shifts counter by COUNTER_BIT_COUNT, but I believe you want to shift it by INDEX_BIT_COUNT

so instead of
return (counter << ANAX_ENTITY_ID_COUNTER_BIT_COUNT) | index;
it should be
return (counter << ANAX_ENTITY_ID_INDEX_BIT_COUNT) | index;

@miguelmartin75
Copy link
Owner

Nice catch, I think you're correct.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants