mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[utils] Fix typo in rolling hash function
This commit is contained in:
parent
3329bdf9af
commit
ddd115812b
|
@ -21,5 +21,5 @@ def get_hash(data):
|
||||||
|
|
||||||
h = 0
|
h = 0
|
||||||
for i in range(len(data)):
|
for i in range(len(data)):
|
||||||
h = ((h << 1 | h >> 63) ^ hash_table[c.data[i]]) & 0xffffffffffffffff
|
h = ((h << 1 | h >> 63) ^ hash_table[data[i]]) & 0xffffffffffffffff
|
||||||
return h
|
return h
|
||||||
|
|
Loading…
Reference in a new issue