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:
@@ -829,7 +829,7 @@ var qrcodegen = new function() {
|
||||
else if ((1 << 7) <= assignVal && assignVal < (1 << 14)) {
|
||||
bb.appendBits(2, 2);
|
||||
bb.appendBits(assignVal, 14);
|
||||
} else if ((1 << 14) <= assignVal && assignVal < 999999) {
|
||||
} else if ((1 << 14) <= assignVal && assignVal < 1000000) {
|
||||
bb.appendBits(6, 3);
|
||||
bb.appendBits(assignVal, 21);
|
||||
} else
|
||||
|
||||
Reference in New Issue
Block a user