diff options
author | Jeffrey Walton <noloader@gmail.com> | 2023-04-14 13:35:54 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2023-04-14 13:35:54 -0400 |
commit | e1c149f9a4351fc4ddf2e9c2226e3e7e0ed14cf3 (patch) | |
tree | 49b374d5391662d08b1fa4fbd0b0947573175bd0 /crc_simd.cpp | |
parent | ee247f86a289138791e6369e28a07cb6e6779feb (diff) | |
download | cryptopp-git-e1c149f9a4351fc4ddf2e9c2226e3e7e0ed14cf3.tar.gz |
Clear truncation warning on MSVC (GH #1202)
Diffstat (limited to 'crc_simd.cpp')
-rw-r--r-- | crc_simd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crc_simd.cpp b/crc_simd.cpp index a2f87513..03409ee6 100644 --- a/crc_simd.cpp +++ b/crc_simd.cpp @@ -186,7 +186,7 @@ void CRC32C_Update_SSE42(const byte *s, size_t n, word32& c) for(; n > 0; s++, n--)
v = _mm_crc32_u8(v, *s);
- c = v;
+ c = static_cast<word32>(v);
}
#endif
|