anax icon indicating copy to clipboard operation
anax copied to clipboard

Entity::ID::Value()

Open michalkelnar opened this issue 8 years ago • 1 comments

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;

michalkelnar avatar Aug 16 '16 11:08 michalkelnar

Nice catch, I think you're correct.

miguelmartin75 avatar Aug 17 '16 02:08 miguelmartin75