Fixed idx for compatibility

This commit is contained in:
itec 2020-12-25 23:02:07 +01:00
parent 32d30b7b2a
commit 64d29bb27c

View file

@ -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