From a8b056526ed6ed15b1cca3cc0c44334262800c92 Mon Sep 17 00:00:00 2001 From: James Zern Date: Wed, 27 Apr 2016 23:41:51 -0700 Subject: [PATCH] x86.h,x86_simd_caps: add an explicit cast w/strtol + use strtoul as mask is unsigned quiets a -Wshorten-64-to-32 warning Change-Id: Ia1c24679302100a252da7a45d3bb871f591f1888 --- 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 e3ebc5320..052f6188e 100644 --- a/vpx_ports/x86.h +++ b/vpx_ports/x86.h @@ -172,7 +172,7 @@ x86_simd_caps(void) { env = getenv("VPX_SIMD_CAPS_MASK"); if (env && *env) - mask = strtol(env, NULL, 0); + mask = (unsigned int)strtoul(env, NULL, 0); /* Ensure that the CPUID instruction supports extended features */ cpuid(0, 0, max_cpuid_val, reg_ebx, reg_ecx, reg_edx);