Issue 881 fix shift in C40 encodation

git-svn-id: https://zxing.googlecode.com/svn/trunk@1831 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2011-06-22 19:58:03 +00:00
parent d0fb1435b1
commit ce2bfa78f7

View file

@ -184,6 +184,8 @@ final class DecodedBitStreamParser {
boolean upperShift = false;
int[] cValues = new int[3];
int shift = 0;
do {
// If there is only one byte left then it will be encoded as ASCII
if (bits.available() == 8) {
@ -196,7 +198,6 @@ final class DecodedBitStreamParser {
parseTwoBytes(firstByte, bits.readBits(8), cValues);
int shift = 0;
for (int i = 0; i < 3; i++) {
int cValue = cValues[i];
switch (shift) {