Fixed incorrect constant in QrSegmentAdvanced.computeCharacterModes() (which caused kanji mode to be used less often than it should be).

pull/39/merge
Project Nayuki 6 years ago
parent f1ec2a8f43
commit e70b3b347f

@ -134,7 +134,7 @@ public final class QrSegmentAdvanced {
charModes[i][2] = modeTypes[2]; charModes[i][2] = modeTypes[2];
} }
if (isKanji(c)) { if (isKanji(c)) {
curCosts[3] = prevCosts[3] + 104; // 13 bits per Shift JIS char curCosts[3] = prevCosts[3] + 78; // 13 bits per Shift JIS char
charModes[i][3] = modeTypes[3]; charModes[i][3] = modeTypes[3];
} }

Loading…
Cancel
Save