This commit is contained in:
Daniel Hládek 2023-04-04 14:39:03 +02:00
parent ab7ca1476f
commit c265c423e1

View File

@ -52,7 +52,7 @@ def calculate_checksums(text):
for c in text: for c in text:
cv = ord(c) cv = ord(c)
sz += 1 sz += 1
if cv > 64: if cv > 64: # ignore non-ascii
hval += (hval << 3) + cv hval += (hval << 3) + cv
zv = hval >> 31 zv = hval >> 31
hval &= 0x7fffffff hval &= 0x7fffffff