X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fuci.cpp;h=ee1b07023a5fe97b17a8c28cb8911fd9caaefc73;hp=819e02bc96fec698f37a71013453f7230b2939c1;hb=5644e14d0e3d69b3f845e475771564ffb3e25445;hpb=9ba391c5cb1c138bb9828bc8d8be296ebddf1d72 diff --git a/src/uci.cpp b/src/uci.cpp index 819e02bc..ee1b0702 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -203,7 +203,7 @@ void UCI::loop(int argc, char* argv[]) { else if (token == "setoption") setoption(is); else if (token == "flip") pos.flip(); else if (token == "bench") benchmark(pos, is); - else if (token == "d") sync_cout << pos.pretty() << sync_endl; + else if (token == "d") sync_cout << pos << sync_endl; else if (token == "isready") sync_cout << "readyok" << sync_endl; else if (token == "eval") sync_cout << Eval::trace(pos) << sync_endl; else @@ -241,7 +241,8 @@ string UCI::format_value(Value v, Value alpha, Value beta) { std::string UCI::format_square(Square s) { - char ch[] = { 'a' + file_of(s), '1' + rank_of(s), 0 }; // Zero-terminating + char ch[] = { char('a' + file_of(s)), + char('1' + rank_of(s)), 0 }; // Zero-terminating return ch; }