diff options
author | James Zern <jzern@google.com> | 2016-04-27 23:41:51 -0700 |
---|---|---|
committer | James Zern <jzern@google.com> | 2016-04-27 23:41:51 -0700 |
commit | a8b056526ed6ed15b1cca3cc0c44334262800c92 (patch) | |
tree | 71c8fb7779568c71eb36ce5305e1e067c2274430 /vpx_ports | |
parent | b2ccb9c189069d45d201c988184e9e0796b96270 (diff) | |
download | libvpx-a8b056526ed6ed15b1cca3cc0c44334262800c92.tar libvpx-a8b056526ed6ed15b1cca3cc0c44334262800c92.tar.gz libvpx-a8b056526ed6ed15b1cca3cc0c44334262800c92.tar.bz2 libvpx-a8b056526ed6ed15b1cca3cc0c44334262800c92.zip |
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
Diffstat (limited to 'vpx_ports')
-rw-r--r-- | vpx_ports/x86.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); |