From fc0733087a035b9e86e17f73b42215b583392502 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sun, 2 Nov 2014 08:03:52 +0100 Subject: [PATCH] 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. --- src/position.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) << " "; -- 2.39.2