shithub: libvpx

Download patch

ref: a8b056526ed6ed15b1cca3cc0c44334262800c92
parent: b2ccb9c189069d45d201c988184e9e0796b96270
author: James Zern <[email protected]>
date: Wed Apr 27 19:41:51 EDT 2016

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

--- a/vpx_ports/x86.h
+++ b/vpx_ports/x86.h
@@ -172,7 +172,7 @@
   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);