Revert "fix exception with std::stoi"

This reverts commit 054f4cc9e3.
pull/1291/head
flightlessmango 1 month ago committed by GitHub
parent 6d71a4076c
commit ce9bd2fae3

@ -469,8 +469,7 @@ static bool find_input(const std::string& path, const char* input_prefix, std::s
if (uscore != std::string::npos) {
file.erase(uscore, std::string::npos);
input = path + "/" + file + "_input";
//9 characters should not overflow the 32-bit int
return std::stoi(read_line(input).substr(0, 9)) > 0;
return std::stoi(read_line(input)) > 0;
}
}
return false;

Loading…
Cancel
Save