Skip to content

Commit 5107611

Browse files
committed
Clear MSVC warning
1 parent b51383c commit 5107611

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cham.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ void CHAM64::Base::UncheckedSetKey(const byte *userKey, unsigned int keyLength,
123123
// Do not cast the buffer. It will SIGBUS on some ARM and SPARC.
124124
const word32 rk = GetWord<word32>(false, BIG_ENDIAN_ORDER, userKey);
125125

126-
const word16 rk1 = rk >> 16;
126+
const word16 rk1 = static_cast<word16>(rk >> 16);
127127
m_rk[i] = rk1 ^ rotlConstant<1>(rk1) ^ rotlConstant<8>(rk1);
128128
m_rk[(i + m_kw) ^ 1] = rk1 ^ rotlConstant<1>(rk1) ^ rotlConstant<11>(rk1);
129129
i++;

0 commit comments

Comments
 (0)