]> sigrok.org Git - pulseview.git/blobdiff - pv/data/logicsegment.cpp
Use bool literals for boolean values.
[pulseview.git] / pv / data / logicsegment.cpp
index 1e66e364c7f6cfe2f71a3f6ea5ae64a1d5b17dc0..bdfc98167b81df85132c2ce2c5310bbe4b62fc52 100644 (file)
@@ -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 =