From: Marco Costalba Date: Sun, 2 Nov 2014 07:03:52 +0000 (+0100) Subject: Restore std::dec after std::hex X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=fc0733087a035b9e86e17f73b42215b583392502 Restore std::dec after std::hex Code is leaking a std::hex, and causes subsequent sync_cout output to be in hexadecimal. Spotted by Lucas No functional change. --- diff --git a/src/position.cpp b/src/position.cpp index 13fcdf24..732a5e88 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -122,7 +122,7 @@ std::ostream& operator<<(std::ostream& os, const Position& pos) { } os << "\nFen: " << pos.fen() << "\nKey: " << std::hex << std::uppercase - << std::setfill('0') << std::setw(16) << pos.st->key << "\nCheckers: "; + << std::setfill('0') << std::setw(16) << pos.st->key << std::dec << "\nCheckers: "; for (Bitboard b = pos.checkers(); b; ) os << UCI::format_square(pop_lsb(&b)) << " ";