aboutsummaryrefslogtreecommitdiffhomepage
path: root/common.h
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-12-10 09:57:22 +0100
committerlemon <lsof@mailbox.org>2025-12-10 09:57:22 +0100
commit15cf067c4e65c1728c48ab049d48219daa436265 (patch)
tree3dcac9f8a85cc9c9f5c2ecc62963800084124274 /common.h
parent600d94645e128dc88fdb9a2b6d42a5b49a138fd5 (diff)
misc fixes
Diffstat (limited to 'common.h')
-rw-r--r--common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.h b/common.h
index 77d24c4..26e4b61 100644
--- a/common.h
+++ b/common.h
@@ -79,7 +79,7 @@ ispo2(uvlong x) {
static inline uint
ilog2(uvlong x) { /* assumes x is a power of 2 */
#if HAS_BUILTIN(ctz)
- return __builtin_ctz(x);
+ return __builtin_ctzll(x);
#else
uint n = 0;
while (x >>= 1) ++n;