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

Small logical error in mruset #411

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MitchellCash
Copy link
Contributor

As written if you make a new_size(10) the mruset will be reduced to up to 9 elements (the while will exit when !(queue.size() >= 10) so (queue.size() < 10).

This "feature" of reducing the mruset length isn't used, so the impact on the program should be zero.

….size() must be <= 5, so the exit condition must be <=, so the continuing condition must be > (and not >= as it was).
@IngCr3at1on
Copy link
Contributor

For some reason that commit message makes very little sense to me lol.

@IngCr3at1on
Copy link
Contributor

Added trivial label since this doesn't directly effect the program.

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

Successfully merging this pull request may close these issues.

2 participants