From 0d887ef51472572555d706e2b2a4e1c9d911ab8d Mon Sep 17 00:00:00 2001 From: James Zern Date: Fri, 14 Feb 2020 17:39:22 -0800 Subject: [PATCH] x86_simd_caps: make mask value unsigned fixes -fsanitize=integer warning: runtime error: implicit conversion from type 'int' of value -1 (32-bit, signed) to type 'unsigned int' changed the value to 4294967295 (32-bit, unsigned) Change-Id: I95d41aade78cea5e4f870a804d3f358c2cf618d7 --- vpx_ports/x86.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vpx_ports/x86.h b/vpx_ports/x86.h index ed26b16..14f4344 100644 --- a/vpx_ports/x86.h +++ b/vpx_ports/x86.h @@ -166,7 +166,7 @@ static INLINE uint64_t xgetbv(void) { static INLINE int x86_simd_caps(void) { unsigned int flags = 0; - unsigned int mask = ~0; + unsigned int mask = ~0u; unsigned int max_cpuid_val, reg_eax, reg_ebx, reg_ecx, reg_edx; char *env; (void)reg_ebx; -- 2.7.4