diff options
author | noloader <noloader@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2015-07-14 03:47:20 +0000 |
---|---|---|
committer | noloader <noloader@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2015-07-14 03:47:20 +0000 |
commit | 88ded51bac648d6d673c5905110336f1342456a4 (patch) | |
tree | 5a57b0eb72ed1c0c403a4e7bfb6fb8e34c2ad1aa | |
parent | 28d918a8d850df1b3017bf505801509d1172e6ec (diff) | |
download | cryptopp-88ded51bac648d6d673c5905110336f1342456a4.tar.gz |
Cleared C4242 warning uder Visual Studio
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@585 57ff6487-cd31-0410-9ec3-f628ee90f5f0
-rw-r--r-- | misc.h | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -755,36 +755,35 @@ template<> inline word64 rotrMod<word64>(word64 x, unsigned int y) template<> inline word16 rotlFixed<word16>(word16 x, unsigned int y) { assert(y < 8*sizeof(x)); - return y ? _rotl16(x, y) : x; + return static_cast<word16>(y ? _rotl16(x, y) : x); } template<> inline word16 rotrFixed<word16>(word16 x, unsigned int y) { assert(y < 8*sizeof(x)); - assert(y <= 255); - return y ? _rotr16(x, y) : x; + return static_cast<word16>(y ? _rotr16(x, y) : x); } template<> inline word16 rotlVariable<word16>(word16 x, unsigned int y) { assert(y < 8*sizeof(x)); - return _rotl16(x, y); + return static_cast<word16>(_rotl16(x, y)); } template<> inline word16 rotrVariable<word16>(word16 x, unsigned int y) { assert(y < 8*sizeof(x)); - return _rotr16(x, y); + return static_cast<word16>(_rotr16(x, y)); } template<> inline word16 rotlMod<word16>(word16 x, unsigned int y) { - return _rotl16(x, y); + return static_cast<word16>(_rotl16(x, y)); } template<> inline word16 rotrMod<word16>(word16 x, unsigned int y) { - return _rotr16(x, y); + return static_cast<word16>(_rotr16(x, y)); } template<> inline byte rotlFixed<byte>(byte x, unsigned int y) |