diff --git a/core/src/zxing/oned/Code39Reader.cpp b/core/src/zxing/oned/Code39Reader.cpp index 9719781..3944c7f 100644 --- a/core/src/zxing/oned/Code39Reader.cpp +++ b/core/src/zxing/oned/Code39Reader.cpp @@ -133,7 +133,7 @@ Ref Code39Reader::decodeRow(int rowNumber, Ref row) { int whiteSpaceAfterEnd = nextStart - lastStart - lastPatternSize; // If 50% of last pattern size, following last pattern, is not whitespace, // fail (but if it's whitespace to the very end of the image, that's OK) - if (nextStart != end && (whiteSpaceAfterEnd >> 1) < lastPatternSize) { + if (nextStart != end && (whiteSpaceAfterEnd << 1) < lastPatternSize) { throw NotFoundException(); }