]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fix for MSVC C4267 error
authorCarl Woffenden <cwoffenden@gmail.com>
Fri, 18 Nov 2022 10:31:17 +0000 (11:31 +0100)
committerCarl Woffenden <cwoffenden@gmail.com>
Fri, 18 Nov 2022 10:31:17 +0000 (11:31 +0100)
lib/compress/zstd_lazy.c

index 2ee9cf6302560895966d688173b5c8fef827b39e..a12e5a43ebbc8e31dc466b9e36275982cd58890e 100644 (file)
@@ -1078,7 +1078,7 @@ ZSTD_row_getMatchMask(const BYTE* const tagRow, const BYTE tag, const U32 headGr
     }
 # endif /* ZSTD_ARCH_ARM_NEON */
     /* SWAR */
-    {   const size_t chunkSize = sizeof(size_t);
+    {   const int chunkSize = sizeof(size_t);
         const size_t shiftAmount = ((chunkSize * 8) - chunkSize);
         const size_t xFF = ~((size_t)0);
         const size_t x01 = xFF / 0xFF;