Commit 3f976729 authored by Jens Gustedt's avatar Jens Gustedt
Browse files

bugfix: uf_size was not working correctly

parent f2f7b2fa
......@@ -140,8 +140,8 @@ p99_inline
uint64_t p99_uf_size(p99_uf* uf, uint64_t pos) {
if (uf || (uf->size > pos)) {
int64_t root = p00_uf_findCompress(pos, uf->tab);
if (root >= 0 && p00_uf_root(pos, uf->tab))
return -uf->tab[pos];
if (root >= 0 && p00_uf_root(root, uf->tab))
return -uf->tab[root];
}
return 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment