From 44b2b6b7a56e744aeae38b482c2ac59b92ae73c9 Mon Sep 17 00:00:00 2001 From: Soeren Apel Date: Fri, 27 Dec 2019 00:20:37 +0100 Subject: [PATCH] Fix build for machines that are not 64 bit --- pv/views/decoder_output/view.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pv/views/decoder_output/view.cpp b/pv/views/decoder_output/view.cpp index c6d80d16..325fa716 100644 --- a/pv/views/decoder_output/view.cpp +++ b/pv/views/decoder_output/view.cpp @@ -316,11 +316,11 @@ void View::save_data_as_hex_dump(bool with_offset, bool with_ascii) const QTextStream out_stream(&file); uint64_t offset = selection.first; - unsigned int n = hex_view_->get_bytes_per_line(); + uint64_t n = hex_view_->get_bytes_per_line(); QString s; while (offset < selection.second) { - size_t end = std::min(selection.second, offset + n); + size_t end = std::min((uint64_t)(selection.second), offset + n); offset = hex_view_->create_hex_line(offset, end, &s, with_offset, with_ascii); out_stream << s << endl; } -- 2.30.2