Fixed idx for compatibility
This commit is contained in:
parent
32d30b7b2a
commit
64d29bb27c
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ class Codec:
|
|||
r = v % len(alphabets[idx])
|
||||
v = int(v / len(alphabets[idx]))
|
||||
st = alphabets[idx][r] + st
|
||||
idx = (idx - 1) % numalpha
|
||||
idx = (idx + numalpha - 1) % numalpha
|
||||
length += 1
|
||||
|
||||
return st
|
||||
|
|
Loading…
Reference in a new issue