From 1259cba8111ca806b5329af27afcd399a87c09d7 Mon Sep 17 00:00:00 2001 From: Dan Paulat Date: Sat, 27 Jan 2024 16:49:47 -0600 Subject: [PATCH] Fix signed/unsigned implicit cast --- scwx-qt/source/scwx/qt/view/level2_product_view.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scwx-qt/source/scwx/qt/view/level2_product_view.cpp b/scwx-qt/source/scwx/qt/view/level2_product_view.cpp index 0e95ddd3..f0199c4b 100644 --- a/scwx-qt/source/scwx/qt/view/level2_product_view.cpp +++ b/scwx-qt/source/scwx/qt/view/level2_product_view.cpp @@ -890,7 +890,7 @@ Level2ProductView::GetBinLevel(const common::Coordinate& coordinate) const const std::int32_t gate = s12 / dataMomentInterval - startGate; if (gate < 0 || gate > numberOfDataMomentGates || - gate > common::MAX_DATA_MOMENT_GATES) + gate > static_cast(common::MAX_DATA_MOMENT_GATES)) { // Coordinate is beyond radar range return std::nullopt;