From: James Zern Date: Thu, 28 Apr 2016 06:41:51 +0000 (-0700) Subject: x86.h,x86_simd_caps: add an explicit cast w/strtol X-Git-Tag: v1.6.0~169^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a8b056526ed6ed15b1cca3cc0c44334262800c92;p=libvpx 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 --- 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);