From 32dff04d320c2dc667380076dff5d575fcf73207 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Wed, 5 Feb 2025 15:46:44 -0800 Subject: [PATCH] fix one minor alignment warning seems like a prototype interface error: input parameter should have been `const void*`, since the documentation is explicit that input doesn't have to be aligned, but `const __m256i*` makes the compiler enforce it. --- lib/compress/zstd_compress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compress/zstd_compress.c b/lib/compress/zstd_compress.c index abc75fb2d..356397605 100644 --- a/lib/compress/zstd_compress.c +++ b/lib/compress/zstd_compress.c @@ -7191,7 +7191,7 @@ static size_t convertSequences_noRepcodes( /* Process 2 sequences per loop iteration */ for (; i + 1 < nbSequences; i += 2) { /* Load 2 ZSTD_Sequence (32 bytes) */ - __m256i vin = _mm256_loadu_si256((__m256i const*)&inSeqs[i]); + __m256i vin = _mm256_loadu_si256((const __m256i*)(const void*)&inSeqs[i]); /* Add {2, 0, -3, 0} in each 128-bit half */ __m256i vadd = _mm256_add_epi32(vin, addition); -- 2.47.2