mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-02 02:00:04 +00:00
Fix signed/unsigned implicit cast
This commit is contained in:
parent
a0f43b5f3f
commit
1259cba811
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue