fix signed/unsigned diff from java from the last patch

git-svn-id: https://zxing.googlecode.com/svn/trunk@2055 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
smparkes@smparkes.net 2011-11-29 19:18:53 +00:00
parent 46cd54ab64
commit 5e3fdcb31e

View file

@ -429,7 +429,7 @@ namespace zxing {
nextStart++;
}
if (!row->isRange(nextStart,
std::min(row->getSize(), nextStart + (nextStart - lastStart) / 2),
std::min(width, nextStart + (nextStart - lastStart) / 2),
false)) {
throw ReaderException("");
}