mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
cryptlib.c: sscanf warning.
This commit is contained in:
parent
0ecedec82d
commit
a985410d2d
@ -149,7 +149,7 @@ void OPENSSL_cpuid_setup(void)
|
|||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
if (!sscanf(env+off,"%I64i",&vec)) vec = strtoul(env+off,NULL,0);
|
if (!sscanf(env+off,"%I64i",&vec)) vec = strtoul(env+off,NULL,0);
|
||||||
#else
|
#else
|
||||||
if (!sscanf(env+off,"%lli",&vec)) vec = strtoul(env+off,NULL,0);
|
if (!sscanf(env+off,"%lli",(long long *)&vec)) vec = strtoul(env+off,NULL,0);
|
||||||
#endif
|
#endif
|
||||||
if (off) vec = OPENSSL_ia32_cpuid()&~vec;
|
if (off) vec = OPENSSL_ia32_cpuid()&~vec;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user