mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-26 21:38:13 +00:00
[hmaptool] Fix NameError: global name 'num_buckets' is not defined
in action_dump
.
This commit is contained in:
parent
d27b39ce11
commit
34ccc3e13b
@ -147,7 +147,7 @@ def action_dump(name, args):
|
||||
suffix = hmap.get_string(suffix_idx)
|
||||
|
||||
print (" bucket[%d]: %r -> (%r, %r) -- %d" % (
|
||||
i, key, prefix, suffix, (hmap_hash(key) & (num_buckets - 1))))
|
||||
i, key, prefix, suffix, (hmap_hash(key) & (len(hmap.buckets) - 1))))
|
||||
else:
|
||||
mappings = sorted(hmap.mappings)
|
||||
for key,value in mappings:
|
||||
|
Loading…
x
Reference in New Issue
Block a user