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
This commit is contained in:
Родитель
b2ccb9c189
Коммит
a8b056526e
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче