From 2e044d827f04f0e572680b19f03bd63c1d0694c8 Mon Sep 17 00:00:00 2001 From: dswitkin Date: Thu, 19 Jun 2008 15:46:39 +0000 Subject: [PATCH] Fixed the build. git-svn-id: http://zxing.googlecode.com/svn/trunk@447 59b500cc-1b3d-0410-9834-0bbf25fbcc57 --- .../zxing/qrcode/decoder/DecodedBitStreamParser.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/src/com/google/zxing/qrcode/decoder/DecodedBitStreamParser.java b/core/src/com/google/zxing/qrcode/decoder/DecodedBitStreamParser.java index b6dda58f..05339f56 100644 --- a/core/src/com/google/zxing/qrcode/decoder/DecodedBitStreamParser.java +++ b/core/src/com/google/zxing/qrcode/decoder/DecodedBitStreamParser.java @@ -106,19 +106,21 @@ final class DecodedBitStreamParser { private static int parseECI(BitSource bits) { int firstByte = bits.readBits(8); - if (firstByte & 0x80 == 0) { + if ((firstByte & 0x80) == 0) { // just one byte return firstByte & 0x7F; - } else if (firstByte & 0xC0 == 0x80) { + } else if ((firstByte & 0xC0) == 0x80) { // two bytes int secondByte = bits.readBits(8); return ((firstByte & 0x3F) << 8) | secondByte; - } else if (firstByte & 0xE0 == 0xC0) { + } else if ((firstByte & 0xE0) == 0xC0) { // three bytes int secondByte = bits.readBits(8); int thirdByte = bits.readBits(8); return ((firstByte & 0x1F) << 16) | (secondByte << 8) | thirdByte; } + // FIXME: What should we return here? + return 0; } private static void decodeKanjiSegment(BitSource bits, -- 2.20.1