diff options
author | noloader <noloader@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2015-07-12 22:11:35 +0000 |
---|---|---|
committer | noloader <noloader@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2015-07-12 22:11:35 +0000 |
commit | 6b3b5dcb6b73810d68c01c90c347465095c4cbcd (patch) | |
tree | 23ee7fd3a1ef627fa724fe23fe60f81f1708284c | |
parent | 49437f71812c3f2bb2bd95005b574e045401ebba (diff) | |
download | cryptopp-6b3b5dcb6b73810d68c01c90c347465095c4cbcd.tar.gz |
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
-rw-r--r-- | misc.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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<unsigned int>(__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<unsigned int>(__builtin_ctzll(v)); #elif defined(_MSC_VER) && _MSC_VER >= 1400 && (defined(_M_X64) || defined(_M_IA64)) unsigned long result; _BitScanForward64(&result, v); |