X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fbook.cpp;h=95ccd690506251c284dc557905a53d5c1cc6711f;hb=6ed409eceeb8caa81604c107b5ce0713b88bbae2;hp=0212317f88ce281608af946e1bad631a58c0122b;hpb=9dcc2aad98b970380a66b61f2238875e9051de97;p=stockfish diff --git a/src/book.cpp b/src/book.cpp index 0212317f..95ccd690 100644 --- a/src/book.cpp +++ b/src/book.cpp @@ -376,7 +376,7 @@ void Book::open(const string& fName) { return; } cerr << "Failed to open book file " << fileName << endl; - Application::exit_with_failure(); + exit(EXIT_FAILURE); } @@ -496,7 +496,7 @@ void Book::read_entry(BookEntry& entry, int idx) { if (!good()) { cerr << "Failed to read book entry at index " << idx << endl; - Application::exit_with_failure(); + exit(EXIT_FAILURE); } } @@ -528,7 +528,7 @@ namespace { uint64_t book_key(const Position& pos) { uint64_t result = 0; - Bitboard b = pos.pieces_of_color(WHITE) | pos.pieces_of_color(BLACK); + Bitboard b = pos.occupied_squares(); while (b) {