mirror of
https://github.com/status-im/QR-Code-generator.git
synced 2026-08-31 01:31:10 +00:00
Fixed incorrect constant in QrSegmentAdvanced.computeCharacterModes() (which caused kanji mode to be used less often than it should be).
This commit is contained in:
@@ -134,7 +134,7 @@ public final class QrSegmentAdvanced {
|
||||
charModes[i][2] = modeTypes[2];
|
||||
}
|
||||
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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user