Issue 165

git-svn-id: https://zxing.googlecode.com/svn/trunk@900 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2009-04-06 21:56:06 +00:00
parent 3530bb1d4b
commit 3d8d68a464

View file

@ -121,6 +121,7 @@ public final class Version {
int bitsDifference = FormatInformation.numBitsDiffering(versionBits, targetVersion); int bitsDifference = FormatInformation.numBitsDiffering(versionBits, targetVersion);
if (bitsDifference < bestDifference) { if (bitsDifference < bestDifference) {
bestVersion = i + 7; bestVersion = i + 7;
bestDifference = bitsDifference;
} }
} }
// We can tolerate up to 3 bits of error since no two version info codewords will // We can tolerate up to 3 bits of error since no two version info codewords will