From dc36849dd09f8bbef7dcdc6e241dc244def9a3ff Mon Sep 17 00:00:00 2001 From: Matthew Parkinson Date: Wed, 26 Aug 2020 16:55:47 +0100 Subject: [PATCH] Reinstate staticcasts. --- src/ds/bits.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 }