From aa37546fff50ec81c34ce5256f18a4d035af9b70 Mon Sep 17 00:00:00 2001 From: Marcel Martin Date: Tue, 19 Mar 2024 10:29:45 +0100 Subject: [PATCH] Get rid of the last compiler warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It would be more correct to convert all start and end coordinates on query and reference to unsigned, but this is a much smaller change and should do for now. warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 99 | if (h.query_start > prev_q_start + k) { | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ --- src/nam.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nam.cpp b/src/nam.cpp index 2dfbccdb..8a74e0af 100644 --- a/src/nam.cpp +++ b/src/nam.cpp @@ -45,7 +45,7 @@ void merge_hits_into_nams( } std::vector open_nams; - unsigned int prev_q_start = 0; + int prev_q_start = 0; for (auto &h : hits) { bool is_added = false; for (auto & o : open_nams) {