X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fuci.cpp;h=cfd112172bf11fe048c4a78447c43888006ca10b;hp=819e02bc96fec698f37a71013453f7230b2939c1;hb=5ab55827b84f1aef79478ec9b030330973036bda;hpb=9ba391c5cb1c138bb9828bc8d8be296ebddf1d72 diff --git a/src/uci.cpp b/src/uci.cpp index 819e02bc..cfd11217 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -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; }