mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-25 11:36:51 +08:00
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.
This commit is contained in:
@@ -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)) << " ";
|
||||
|
||||
Reference in New Issue
Block a user