summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2014-03-12 12:05:35 -0700
committerEdward Thomson <ethomson@edwardthomson.com>2014-03-12 12:05:35 -0700
commite59e712f6464f455a92b8f3042134e2c43fd24a1 (patch)
tree473517cf5e447c8cc25e5e2430ac6d640bafb910 /src
parent9af14886a94ca4d08c7af1ba84b21cba40fce34c (diff)
parent5302a88538c870028f2623b099c66c800f5cfe68 (diff)
downloadlibgit2-e59e712f6464f455a92b8f3042134e2c43fd24a1.tar.gz
Merge pull request #2184 from libgit2/rb/fix-revwalk-order-regression
Fix pqueue sort boundary condition bug
Diffstat (limited to 'src')
-rw-r--r--src/pqueue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pqueue.c b/src/pqueue.c
index 172cf43d5..54a60ca04 100644
--- a/src/pqueue.c
+++ b/src/pqueue.c
@@ -68,7 +68,7 @@ static void pqueue_down(git_pqueue *pq, size_t el)
kid_el += 1;
}
- if (pq->_cmp(parent, kid) < 0)
+ if (pq->_cmp(parent, kid) <= 0)
break;
pq->contents[el] = kid;