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

Max size of head/tail #25

Open
ongkoonhan opened this issue Oct 1, 2024 · 1 comment
Open

Max size of head/tail #25

ongkoonhan opened this issue Oct 1, 2024 · 1 comment

Comments

@ongkoonhan
Copy link

I noticed the implementation only increments head/tail atomic size_t variables.
If head/tail reaches the max value of size_t and overflows, does the implementation still perform as expected?

@jnk0le
Copy link
Owner

jnk0le commented Oct 1, 2024

yes, as the two's complement numbers add/subtract correctly across unsigned overflow.

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

2 participants