Fixed the upper limit of ECI values to be more permissive according to the spec, in almost all language versions except C.

This commit is contained in:
Project Nayuki
2017-08-26 18:43:54 +00:00
parent 58a39a96c3
commit 6b2cfd98dc
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -137,7 +137,7 @@ QrSegment QrSegment::makeEci(long assignVal) {
else if ((1 << 7) <= assignVal && assignVal < (1 << 14)) {
bb.appendBits(2, 2);
bb.appendBits(assignVal, 14);
} else if ((1 << 14) <= assignVal && assignVal < 999999L) {
} else if ((1 << 14) <= assignVal && assignVal < 1000000L) {
bb.appendBits(6, 3);
bb.appendBits(assignVal, 21);
} else