aboutsummaryrefslogtreecommitdiff
path: root/src/big_int.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/big_int.cpp')
-rw-r--r--src/big_int.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/big_int.cpp b/src/big_int.cpp
index 42d28d28c..be4f2cdc1 100644
--- a/src/big_int.cpp
+++ b/src/big_int.cpp
@@ -735,7 +735,7 @@ u64 leading_zeros_u64(u64 x) {
#if defined(GB_COMPILER_MSVC)
return __lzcnt64(x);
#else
- return cast(u64)__builtin_clz(cast(unsigned long long)x);
+ return cast(u64)__builtin_clzll(cast(unsigned long long)x);
#endif
}