]> sigrok.org Git - pulseview.git/blobdiff - pv/toolbars/mainbar.cpp
Replace (double)0 by 0.0
[pulseview.git] / pv / toolbars / mainbar.cpp
index 3ee62f4c3dabbd519ced10b1f26c4f410bb2742e..9fcb42d123ec4a64af1da0d18cc1898d6a21d0e9 100644 (file)
@@ -607,9 +607,9 @@ void MainBar::export_file(shared_ptr<OutputFormat> format, bool selection_only)
                const pv::util::Timestamp& end_time = trace_view->cursors()->second()->time();
 
                const uint64_t start_sample = (uint64_t)max(
-                       (double)0, start_time.convert_to<double>() * samplerate);
+                       0.0, start_time.convert_to<double>() * samplerate);
                const uint64_t end_sample = (uint64_t)max(
-                       (double)0, end_time.convert_to<double>() * samplerate);
+                       0.0, end_time.convert_to<double>() * samplerate);
 
                if ((start_sample == 0) && (end_sample == 0)) {
                        // Both cursors are negative and were clamped to 0