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

Fix ArrayQueue #55

Merged
merged 2 commits into from Oct 6, 2017
Merged

Fix ArrayQueue #55

merged 2 commits into from Oct 6, 2017

Conversation

ScottDDexter
Copy link
Contributor

@ScottDDexter ScottDDexter commented Oct 5, 2017

There seem to be two small bugs in the ArrayQueue code--the resize() method needs the max() function from the utils header, but the header isn't included. And the destructor deletes the array a, but a wasn't dynamically allocated to begin with. (Thanks to my students for pointing these out!)

sdexter72 added 2 commits October 5, 2017 17:03
ArrayQueue::resize() needs the max() function from utils in order to compile.
The member `a` is not dynamically allocated and so should not be deleted.
Copy link
Owner

@patmorin patmorin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

Copy link
Owner

@patmorin patmorin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep. Weird how that got there.

@patmorin patmorin merged commit 65b36bc into patmorin:master Oct 6, 2017
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

Successfully merging this pull request may close these issues.

None yet

2 participants