]> git.sesse.net Git - stockfish/blobdiff - src/book.cpp
Fix MSVC warning on streampos to size_t conversion
[stockfish] / src / book.cpp
index d5bab90b3f144cf167b3e8726905c938298c1fd9..1dd5aa6dadb4675cec1be733b3fb5380cdaab8cf 100644 (file)
@@ -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())
   {