Skip to content

Small logical error in mruset#411

Open
MitchellCash wants to merge 1 commit intoPaycoinFoundation:masterfrom
MitchellCash:mruset
Open

Small logical error in mruset#411
MitchellCash wants to merge 1 commit intoPaycoinFoundation:masterfrom
MitchellCash:mruset

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