Skip to content

Fix pqueue sort boundary condition bug - #2184

Merged
ethomson merged 1 commit into
developmentfrom
rb/fix-revwalk-order-regression
Mar 12, 2014
Merged

ethomson merged 1 commit into
developmentfrom
rb/fix-revwalk-order-regression

Conversation

@arrbee

@arrbee arrbee commented Mar 12, 2014

Copy link
Copy Markdown
Member

If the pqueue comparison fn returned just 0 or 1 (think return (a < b)) then the sort order of returned items could be wrong because there was a < 0 that really needed to be <= 0. Yikes!!!

Fixes issue #2182 - thanks @nulltoken!

If the pqueue comparison fn returned just 0 or 1 (think "a<b")
then the sort order of returned items could be wrong because there
was a "< 0" that really needed to be "<= 0".  Yikes!!!
ethomson added a commit that referenced this pull request Mar 12, 2014
@ethomson
ethomson merged commit e59e712 into development Mar 12, 2014
@ethomson

Copy link
Copy Markdown
Member

Neat!

@nulltoken
nulltoken deleted the rb/fix-revwalk-order-regression branch March 12, 2014 19:06
phatblat pushed a commit to phatblat/libgit2 that referenced this pull request Sep 13, 2014
…ression

Fix pqueue sort boundary condition bug
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