aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/common
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2023-03-19 22:45:59 +0200
committerLasse Collin <lasse.collin@tukaani.org>2023-03-19 22:45:59 +0200
commitdfe1710784c0a3c3a90c17b80c9e1fe19b5fce06 (patch)
tree03311361e699be3b42a06960850e63664394d64d /src/liblzma/common
parentAdd NEWS for 5.4.2. (diff)
downloadxz-dfe1710784c0a3c3a90c17b80c9e1fe19b5fce06.tar.xz
liblzma: Silence -Wsign-conversion in SSE2 code in memcmplen.h.
Thanks to Christian Hesse for reporting the issue. Fixes: https://github.com/tukaani-project/xz/issues/44
Diffstat (limited to 'src/liblzma/common')
-rw-r--r--src/liblzma/common/memcmplen.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/liblzma/common/memcmplen.h b/src/liblzma/common/memcmplen.h
index 5a481a02..5372cfa8 100644
--- a/src/liblzma/common/memcmplen.h
+++ b/src/liblzma/common/memcmplen.h
@@ -89,7 +89,8 @@ lzma_memcmplen(const uint8_t *buf1, const uint8_t *buf2,
// version isn't used on x86-64.
# define LZMA_MEMCMPLEN_EXTRA 16
while (len < limit) {
- const uint32_t x = 0xFFFF ^ _mm_movemask_epi8(_mm_cmpeq_epi8(
+ const uint32_t x = 0xFFFF ^ (uint32_t)_mm_movemask_epi8(
+ _mm_cmpeq_epi8(
_mm_loadu_si128((const __m128i *)(buf1 + len)),
_mm_loadu_si128((const __m128i *)(buf2 + len))));