summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/bitops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/bitops.c b/util/bitops.c
index 50b4a811a6..e72237ab2b 100644
--- a/util/bitops.c
+++ b/util/bitops.c
@@ -109,7 +109,7 @@ found_first:
return result + size; /* Nope. */
}
found_middle:
- return result + bitops_ctol(tmp);
+ return result + ctzl(~tmp);
}
unsigned long find_last_bit(const unsigned long *addr, unsigned long size)