Small logic fix -- OK to end up at border of image in this code

git-svn-id: https://zxing.googlecode.com/svn/trunk@127 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2007-12-21 18:09:03 +00:00
parent f1639974f0
commit 3fd38e3893

View file

@ -226,7 +226,7 @@ final class FinderPatternFinder {
stateCount[0]++;
i--;
}
if (i < 0 || stateCount[0] > maxCount) {
if (stateCount[0] > maxCount) {
return Float.NaN;
}
@ -287,7 +287,7 @@ final class FinderPatternFinder {
stateCount[0]++;
j--;
}
if (j < 0 || stateCount[0] > maxCount) {
if (stateCount[0] > maxCount) {
return Float.NaN;
}