while (1) -> while (true)
[dcpomatic.git] / src / lib / file_group.cc
index 9d042554c5b8c0649385456895d0358d813a7b0c..048f6923316e2cae13edfa9033daaa982f143db3 100644 (file)
@@ -142,7 +142,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) {