Skip to content

Commit

Permalink
Restore std::dec after std::hex
Browse files Browse the repository at this point in the history
Code is leaking a std::hex, and causes subsequent
sync_cout output to be in hexadecimal.

Spotted by Lucas

No functional change.
  • Loading branch information
mcostalba committed Nov 2, 2014
1 parent 42a2092 commit fc07330
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/position.cpp
Expand Up @@ -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)) << " ";
Expand Down

0 comments on commit fc07330

Please sign in to comment.