Fix signed/unsigned implicit cast

This commit is contained in:
Dan Paulat 2024-01-27 16:49:47 -06:00
parent a0f43b5f3f
commit 1259cba811

View file

@ -890,7 +890,7 @@ Level2ProductView::GetBinLevel(const common::Coordinate& coordinate) const
const std::int32_t gate = s12 / dataMomentInterval - startGate; const std::int32_t gate = s12 / dataMomentInterval - startGate;
if (gate < 0 || gate > numberOfDataMomentGates || if (gate < 0 || gate > numberOfDataMomentGates ||
gate > common::MAX_DATA_MOMENT_GATES) gate > static_cast<std::int32_t>(common::MAX_DATA_MOMENT_GATES))
{ {
// Coordinate is beyond radar range // Coordinate is beyond radar range
return std::nullopt; return std::nullopt;