X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbook.cpp;h=1dd5aa6dadb4675cec1be733b3fb5380cdaab8cf;hp=d5bab90b3f144cf167b3e8726905c938298c1fd9;hb=8751b18cf0b5ddb9d7549a465444d5ace215a097;hpb=2608b9249d9c25a699c8db8725e35bd4ec0b65ab diff --git a/src/book.cpp b/src/book.cpp index d5bab90b..1dd5aa6d 100644 --- a/src/book.cpp +++ b/src/book.cpp @@ -383,7 +383,7 @@ bool Book::open(const char* fName) { return false; // Silently fail if the file is not found // Get the book size in number of entries, we are already at the end of file - size = tellg() / sizeof(BookEntry); + size = (size_t)tellg() / sizeof(BookEntry); if (!good()) {