X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ffile_group.cc;h=9c8d43204b1b830726c073de894e7b9f5c6e9e22;hb=946dbad9821e676f1d8fdc5abba459da54b8e84c;hp=54ec8280c0a6830da2a671137dc7a4f45336b61b;hpb=3574212ee42b2bd924eb95d5c0f4f69ec9e0a2f0;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) {