From 212fb3071cdaa08cfe8bf0243b3acd1fe23f1fa2 Mon Sep 17 00:00:00 2001 From: Gustaf Lundh Date: Mon, 25 Feb 2013 18:24:16 +0100 Subject: Fix while boundries in DateRevQueue.add() In add(), "low" will never equals "first". This fact should be reflected in the code. Change-Id: I5cab51374e67bd2d3301e5d9dac47c4259b5e562 --- org.eclipse.jgit/src/org/eclipse/jgit/revwalk/DateRevQueue.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/revwalk') diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/DateRevQueue.java b/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/DateRevQueue.java index 2c46f8eb47..0802bfafde 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/DateRevQueue.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/DateRevQueue.java @@ -106,7 +106,7 @@ public class DateRevQueue extends AbstractRevQueue { } } low = Math.min(low, high); - while (low >= first && when == index[low].commit.commitTime) + while (low > first && when == index[low].commit.commitTime) --low; q = index[low]; } -- cgit v1.2.3