From 6b3b5dcb6b73810d68c01c90c347465095c4cbcd Mon Sep 17 00:00:00 2001 From: noloader Date: Sun, 12 Jul 2015 22:11:35 +0000 Subject: Cleared signed/unsigned warning using GCC __builtin_XXX git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@578 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- misc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc.h b/misc.h index b6a1b86..ed51eff 100644 --- a/misc.h +++ b/misc.h @@ -277,7 +277,7 @@ unsigned int BitPrecision(const T &value) inline unsigned int TrailingZeros(word32 v) { #if defined(__GNUC__) && CRYPTOPP_GCC_VERSION >= 30400 - return __builtin_ctz(v); + return static_cast(__builtin_ctz(v)); #elif defined(_MSC_VER) && _MSC_VER >= 1400 unsigned long result; _BitScanForward(&result, v); @@ -296,7 +296,7 @@ inline unsigned int TrailingZeros(word32 v) inline unsigned int TrailingZeros(word64 v) { #if defined(__GNUC__) && CRYPTOPP_GCC_VERSION >= 30400 - return __builtin_ctzll(v); + return static_cast(__builtin_ctzll(v)); #elif defined(_MSC_VER) && _MSC_VER >= 1400 && (defined(_M_X64) || defined(_M_IA64)) unsigned long result; _BitScanForward64(&result, v); -- cgit v1.2.1