]> git.sesse.net Git - stockfish/blobdiff - src/book.cpp
Retire Application class
[stockfish] / src / book.cpp
index 0212317f88ce281608af946e1bad631a58c0122b..95ccd690506251c284dc557905a53d5c1cc6711f 100644 (file)
@@ -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)
     {