diff --git a/src/ds/bits.h b/src/ds/bits.h index a32513a..08eccaa 100644 --- a/src/ds/bits.h +++ b/src/ds/bits.h @@ -76,11 +76,11 @@ namespace snmalloc #else if constexpr (std::is_same_v) { - return __builtin_clzl(x); + return static_cast(__builtin_clzl(x)); } else if constexpr (std::is_same_v) { - return __builtin_clzll(x); + return static_cast(__builtin_clzll(x)); } #endif } @@ -153,11 +153,11 @@ namespace snmalloc #else if constexpr (std::is_same_v) { - return __builtin_ctzl(x); + return static_cast(__builtin_ctzl(x)); } else if constexpr (std::is_same_v) { - return __builtin_ctzll(x); + return static_cast(__builtin_ctzll(x)); } #endif }