Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Lindberg2009-05-11 06:30:25 -0400
committerHenrik Lindberg2009-05-11 06:30:25 -0400
commitb3bbaccb618325433f6c3a6c178b5d4a2a0e1897 (patch)
treefbbf3b6baef247e9000f026b937724862f340681 /bundles/org.eclipse.equinox.p2.testserver
parent1013cd9ff607933ebd1e089cfda07e9309795957 (diff)
downloadrt.equinox.p2-b3bbaccb618325433f6c3a6c178b5d4a2a0e1897.tar.gz
rt.equinox.p2-b3bbaccb618325433f6c3a6c178b5d4a2a0e1897.tar.xz
rt.equinox.p2-b3bbaccb618325433f6c3a6c178b5d4a2a0e1897.zip
Linear change did not advance to max (or min) value.
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.testserver')
-rw-r--r--bundles/org.eclipse.equinox.p2.testserver/src/org/eclipse/equinox/p2/testserver/LinearChange.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.testserver/src/org/eclipse/equinox/p2/testserver/LinearChange.java b/bundles/org.eclipse.equinox.p2.testserver/src/org/eclipse/equinox/p2/testserver/LinearChange.java
index 36b4fa9dc..a203a1d30 100644
--- a/bundles/org.eclipse.equinox.p2.testserver/src/org/eclipse/equinox/p2/testserver/LinearChange.java
+++ b/bundles/org.eclipse.equinox.p2.testserver/src/org/eclipse/equinox/p2/testserver/LinearChange.java
@@ -71,9 +71,9 @@ public class LinearChange {
public boolean hasNext() {
if (step == 0)
return false;
- if (step > 0 && current + step >= max)
+ if (step > 0 && current + step > max)
return false;
- if (step < 0 && current + step <= min)
+ if (step < 0 && current + step < min)
return false;
return true;
}

Back to the top