mirror of
https://github.com/status-im/QR-Code-generator.git
synced 2026-08-31 01:31:10 +00:00
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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user