diff --git a/src/uci.cpp b/src/uci.cpp index da47ff06c..e17533afd 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -100,7 +100,7 @@ void UCIEngine::loop() { std::istringstream is(cmd); token.clear(); // Avoid a stale if getline() returns nothing or a blank line - is >> std::skipws >> token; + is >> token; if (token == "quit" || token == "stop") engine.stop(); @@ -154,10 +154,10 @@ void UCIEngine::loop() { { std::pair, std::string> files[2]; - if (is >> std::skipws >> files[0].second) + if (is >> files[0].second) files[0].first = files[0].second; - if (is >> std::skipws >> files[1].second) + if (is >> files[1].second) files[1].first = files[1].second; engine.save_network(files); @@ -248,7 +248,7 @@ void UCIEngine::bench(std::istream& args) { for (const auto& cmd : list) { std::istringstream is(cmd); - is >> std::skipws >> token; + is >> token; if (token == "go" || token == "eval") { @@ -330,7 +330,7 @@ void UCIEngine::benchmark(std::istream& args) { for (const auto& cmd : setup.commands) { std::istringstream is(cmd); - is >> std::skipws >> token; + is >> token; if (token == "go") { @@ -381,7 +381,7 @@ void UCIEngine::benchmark(std::istream& args) { for (const auto& cmd : setup.commands) { std::istringstream is(cmd); - is >> std::skipws >> token; + is >> token; if (token == "go") {