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
@@ -681,7 +681,7 @@ class QrSegment(object):
elif (1 << 7) <= assignval < (1 << 14):
bb.append_bits(2, 2)
bb.append_bits(assignval, 14)
elif (1 << 14) <= assignval < 999999:
elif (1 << 14) <= assignval < 1000000:
bb.append_bits(6, 3)
bb.append_bits(assignval, 21)
else: