zz
This commit is contained in:
parent
ab7ca1476f
commit
c265c423e1
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user