From c26bc66322aae731c3f06149fc4741db2ae97e51 Mon Sep 17 00:00:00 2001 From: srowen Date: Mon, 24 Aug 2009 06:49:57 +0000 Subject: [PATCH] Issue 230 git-svn-id: http://zxing.googlecode.com/svn/trunk@1040 59b500cc-1b3d-0410-9834-0bbf25fbcc57 --- .../com/google/zxing/qrcode/decoder/DecodedBitStreamParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/google/zxing/qrcode/decoder/DecodedBitStreamParser.java b/core/src/com/google/zxing/qrcode/decoder/DecodedBitStreamParser.java index b6efa2b2..aee1b943 100644 --- a/core/src/com/google/zxing/qrcode/decoder/DecodedBitStreamParser.java +++ b/core/src/com/google/zxing/qrcode/decoder/DecodedBitStreamParser.java @@ -264,7 +264,7 @@ final class DecodedBitStreamParser { boolean lastWasPossibleDoubleByteStart = false; for (int i = 0; i < length && (canBeISO88591 || canBeShiftJIS); i++) { int value = bytes[i] & 0xFF; - if (value == 0xC2 || value == 0xC3 && i < length - 1) { + if ((value == 0xC2 || value == 0xC3) && i < length - 1) { // This is really a poor hack. The slightly more exotic characters people might want to put in // a QR Code, by which I mean the Latin-1 supplement characters (e.g. u-umlaut) have encodings // that start with 0xC2 followed by [0xA0,0xBF], or start with 0xC3 followed by [0x80,0xBF]. -- 2.20.1