From e1c149f9a4351fc4ddf2e9c2226e3e7e0ed14cf3 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Fri, 14 Apr 2023 13:35:54 -0400 Subject: Clear truncation warning on MSVC (GH #1202) --- crc_simd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(v); } #endif -- cgit v1.2.1