cryptlib.c: sscanf warning.

This commit is contained in:
Andy Polyakov 2012-01-15 17:13:57 +00:00
parent 0ecedec82d
commit a985410d2d

View File

@ -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;
} }