提交 05f3dc93 编写于 作者: 李滨

Merge branch 'atof' into 'master'

Replace atof to strtof

See merge request !911
...@@ -84,7 +84,7 @@ int GetCPUMaxFreq(std::vector<float> *max_freqs) { ...@@ -84,7 +84,7 @@ int GetCPUMaxFreq(std::vector<float> *max_freqs) {
} }
std::string line; std::string line;
if (std::getline(f, line)) { if (std::getline(f, line)) {
float freq = atof(line.c_str()); float freq = strtof(line.c_str(), nullptr);
max_freqs->push_back(freq); max_freqs->push_back(freq);
} }
if (f.bad()) { if (f.bad()) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册