X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fbook.cpp;h=c5c40dde42f1546a4a8e6938ecc1a19c6190a983;hb=d7f5f15d69564ef8399235e0c24806fdf84413f1;hp=caf2b0663ec76987720231e29360c6d434238d27;hpb=d3608c4e79a29110f4c4a369d7207c6dd8e01f34;p=stockfish diff --git a/src/book.cpp b/src/book.cpp index caf2b066..c5c40dde 100644 --- a/src/book.cpp +++ b/src/book.cpp @@ -361,7 +361,7 @@ PolyglotBook::~PolyglotBook() { if (is_open()) close(); } template PolyglotBook& PolyglotBook::operator>>(T& n) { n = 0; - for (size_t i = 0; i < sizeof(T); i++) + for (size_t i = 0; i < sizeof(T); ++i) n = T((n << 8) + ifstream::get()); return *this;