X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ffile_group.cc;h=9c8d43204b1b830726c073de894e7b9f5c6e9e22;hb=d2137ac5db409e686b4d9b3fa567935a5e416d41;hp=54ec8280c0a6830da2a671137dc7a4f45336b61b;hpb=e6c67f4aac2ca9afc275b6f13058e1e46f2cecc3;p=dcpomatic.git diff --git a/src/lib/file_group.cc b/src/lib/file_group.cc index 54ec8280c..9c8d43204 100644 --- a/src/lib/file_group.cc +++ b/src/lib/file_group.cc @@ -151,7 +151,7 @@ int FileGroup::read (uint8_t* buffer, int amount) const { int read = 0; - while (1) { + while (true) { int const this_time = fread (buffer + read, 1, amount - read, _current_file); read += this_time; if (read == amount) {