From 25753671fdf4f1a180abc457358df702c52687e0 Mon Sep 17 00:00:00 2001 From: "Erik Garrison (aider)" Date: Thu, 12 Dec 2024 16:39:45 -0600 Subject: [PATCH] fix: Cast int64_t to size_t in std::min calls to resolve type mismatch --- src/align/include/computeAlignments.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/align/include/computeAlignments.hpp b/src/align/include/computeAlignments.hpp index 1a078c3f..db7f2375 100644 --- a/src/align/include/computeAlignments.hpp +++ b/src/align/include/computeAlignments.hpp @@ -351,11 +351,11 @@ void verify_cigar_alignment(const std::string& cigar, // Calculate context range for query sequence size_t query_context_start = (q_pos + k >= 5) ? q_pos + k - 5 : 0; - size_t query_context_end = std::min(q_pos + k + 5, static_cast(query_length - 1)); + size_t query_context_end = std::min(static_cast(q_pos + k + 5), static_cast(query_length - 1)); // Calculate context range for target sequence size_t target_context_start = (t_pos + k >= 5) ? t_pos + k - 5 : 0; - size_t target_context_end = std::min(t_pos + k + 5, static_cast(target_length - 1)); + size_t target_context_end = std::min(static_cast(t_pos + k + 5), static_cast(target_length - 1)); // Extract context sequences std::string query_context(query_seq + query_context_start, query_seq + query_context_end + 1);