提交 5d13669a 编写于 作者: A Andy Polyakov

cryptlib.c: make even non-Windows builds "strtoull-agnostic".

上级 adb5a269
...@@ -149,7 +149,7 @@ void OPENSSL_cpuid_setup(void) ...@@ -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
vec = strtoull(env+off,NULL,0); if (!sscanf(env+off,"%lli",&vec)) vec = strtoul(env+off,NULL,0);
#endif #endif
if (off) vec = OPENSSL_ia32_cpuid()&~vec; if (off) vec = OPENSSL_ia32_cpuid()&~vec;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册