]> granicus.if.org Git - libvpx/commitdiff
x86.h,x86_simd_caps: add an explicit cast w/strtol
authorJames Zern <jzern@google.com>
Thu, 28 Apr 2016 06:41:51 +0000 (23:41 -0700)
committerJames Zern <jzern@google.com>
Thu, 28 Apr 2016 06:41:51 +0000 (23:41 -0700)
+ use strtoul as mask is unsigned

quiets a -Wshorten-64-to-32 warning

Change-Id: Ia1c24679302100a252da7a45d3bb871f591f1888

vpx_ports/x86.h

index e3ebc5320eadb0bda0a0baff7d93a680636707d3..052f6188e4e64165f52241afdac26526c8b6da88 100644 (file)
@@ -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);