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 issue 7992 #852

Merged
merged 3 commits into from
Oct 13, 2012
Merged

FIx issue 7992 #852

merged 3 commits into from
Oct 13, 2012

Conversation

quickfur
Copy link
Member

The problem is caused by haystackTooShort() always returning false when both the haystack and the needle have a length property defined. This causes the searching loop to call popFront() on an empty haystack.

debug(std_algorithm) scope(success)
writeln("unittest @", __FILE__, ":", __LINE__, " done.");

struct CustomString {
Copy link
Member

Choose a reason for hiding this comment

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

Please do not put braces on the same line as other stuff like this. The lines below are okay, because the whole thing is on one line, but other than cases like that, braces need to go on their own line.

@quickfur
Copy link
Member Author

Fixed coding style.

@quickfur
Copy link
Member Author

Rebased.

jmdavis added a commit that referenced this pull request Oct 13, 2012
@jmdavis jmdavis merged commit 350d960 into dlang:master Oct 13, 2012
@jmdavis
Copy link
Member

jmdavis commented Oct 13, 2012

Merged.

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.

2 participants