X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fnotation.cpp;h=cace78b953fb083a101f80fa1b0028d1b8e8892f;hp=9893569c742378cd62a1c4bbc9d63bf86c4ea005;hb=ac7780bd352bb13c19154a8bfd8aaa409fdc1d9c;hpb=0d8a4c7565390c9f7ccc99799a76a19fb50e6f7b diff --git a/src/notation.cpp b/src/notation.cpp index 9893569c..cace78b9 100644 --- a/src/notation.cpp +++ b/src/notation.cpp @@ -43,7 +43,7 @@ string score_to_uci(Value v, Value alpha, Value beta) { stringstream ss; if (abs(v) < VALUE_MATE_IN_MAX_PLY) - ss << "cp " << v * 100 / int(PawnValueEg); + ss << "cp " << v * 100 / PawnValueEg; else ss << "mate " << (v > 0 ? VALUE_MATE - v + 1 : -VALUE_MATE - v) / 2; @@ -138,7 +138,7 @@ const string move_to_san(Position& pos, Move m) { } if (!others) - { /* disambiguation is not needed */ } + { /* Disambiguation is not needed */ } else if (!(others & file_bb(from))) san += to_char(file_of(from));