Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uint16_t i = (p_queue->write_idx)++ & (capacity - 1); => uint16_t i = (p_queue->write_idx)++ % capacity ; #3

Open
wsd1 opened this issue Feb 26, 2024 · 0 comments

Comments

@wsd1
Copy link

wsd1 commented Feb 26, 2024

If capacity not equal to 2\4\8\16\32... there will be some issues here.

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

No branches or pull requests

1 participant