summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornoloader <noloader@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2015-07-14 03:47:20 +0000
committernoloader <noloader@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2015-07-14 03:47:20 +0000
commit88ded51bac648d6d673c5905110336f1342456a4 (patch)
tree5a57b0eb72ed1c0c403a4e7bfb6fb8e34c2ad1aa
parent28d918a8d850df1b3017bf505801509d1172e6ec (diff)
downloadcryptopp-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.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/misc.h b/misc.h
index 6f2b27e..a4c6135 100644
--- a/misc.h
+++ b/misc.h
@@ -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)