Unverified Commit 7fe10fa1 authored by odimka's avatar odimka Committed by GitHub
Browse files

Fixed machine list parsing: s/find_first_of/find (#3108)

parent 7e81d9e2
......@@ -91,7 +91,7 @@ void Linkers::ParseMachineList(const std::string& machines, const std::string& f
}
for (auto& line : lines) {
line = Common::Trim(line);
if (line.find_first_of("rank=") != std::string::npos) {
if (line.find("rank=") != std::string::npos) {
std::vector<std::string> str_after_split = Common::Split(line.c_str(), '=');
Common::Atoi(str_after_split[1].c_str(), &rank_);
continue;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment