Issue 1194 small bug fix in array expanding comparisons

git-svn-id: https://zxing.googlecode.com/svn/trunk@2212 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2012-03-02 21:38:34 +00:00
parent 3b90a72727
commit a88da9d002

View file

@ -249,7 +249,7 @@ public final class CodaBarReader extends OneDReader {
private void counterAppend(int e) { private void counterAppend(int e) {
counters[counterLength] = e; counters[counterLength] = e;
counterLength++; counterLength++;
if (counterLength >= counterLength) { if (counterLength >= counters.length) {
int[] temp = new int[counterLength * 2]; int[] temp = new int[counterLength * 2];
System.arraycopy(counters, 0, temp, 0, counterLength); System.arraycopy(counters, 0, temp, 0, counterLength);
counters = temp; counters = temp;