mirror of
https://github.com/openharmony/third_party_qrcodegen.git
synced 2026-07-19 12:13:36 -04: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