Skip to content

Commit

Permalink
Issue #166 handle a shift to byte mode properly outside of a compacti…
Browse files Browse the repository at this point in the history
…on mode handler
  • Loading branch information
srowen committed Jun 10, 2014
1 parent e28b011 commit d70ef41
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -110,9 +110,11 @@ static DecoderResult decode(int[] codewords, String ecLevel) throws FormatExcept
break;
case BYTE_COMPACTION_MODE_LATCH:
case BYTE_COMPACTION_MODE_LATCH_6:
case MODE_SHIFT_TO_BYTE_COMPACTION_MODE:
codeIndex = byteCompaction(code, codewords, encoding, codeIndex, result);
break;
case MODE_SHIFT_TO_BYTE_COMPACTION_MODE:
result.append((char) codewords[codeIndex++]);
break;
case NUMERIC_COMPACTION_MODE_LATCH:
codeIndex = numericCompaction(codewords, codeIndex, result);
break;
Expand Down

0 comments on commit d70ef41

Please sign in to comment.