mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
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:
parent
d0fb1435b1
commit
ce2bfa78f7
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue