X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdata%2Flogicsegment.cpp;h=bdfc98167b81df85132c2ce2c5310bbe4b62fc52;hp=1e66e364c7f6cfe2f71a3f6ea5ae64a1d5b17dc0;hb=1f1d55ce48ae1dac0f077c60827a41b368b5207a;hpb=1887da2169397774c9563e9bf44c51ed7efc3646 diff --git a/pv/data/logicsegment.cpp b/pv/data/logicsegment.cpp index 1e66e36..bdfc981 100644 --- a/pv/data/logicsegment.cpp +++ b/pv/data/logicsegment.cpp @@ -376,7 +376,7 @@ void LogicSegment::get_subsampled_edges( // Slide right and zoom out at the beginnings of mip-map // blocks until we encounter a change - while (1) { + while (true) { const int level_scale_power = (level + 1) * MipMapScalePower; const uint64_t offset = @@ -408,7 +408,7 @@ void LogicSegment::get_subsampled_edges( // Zoom in, and slide right until we encounter a change, // and repeat until we reach min_level - while (1) { + while (true) { assert(mip_map_[level].data); const int level_scale_power =