From 88fb3d64d3d940afb18ee5976f8a9b11f091d45d Mon Sep 17 00:00:00 2001 From: Max SCHMELLER Date: Thu, 16 Jan 2025 15:26:46 +0900 Subject: [PATCH] chore(downsample_mask): explicitly cast instead of implicit conversions Signed-off-by: Max SCHMELLER --- .../nebula_decoders_common/point_filters/downsample_mask.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nebula_decoders/include/nebula_decoders/nebula_decoders_common/point_filters/downsample_mask.hpp b/nebula_decoders/include/nebula_decoders/nebula_decoders_common/point_filters/downsample_mask.hpp index bc6ed40a..8d0e96e7 100644 --- a/nebula_decoders/include/nebula_decoders/nebula_decoders_common/point_filters/downsample_mask.hpp +++ b/nebula_decoders/include/nebula_decoders/nebula_decoders_common/point_filters/downsample_mask.hpp @@ -103,7 +103,7 @@ class DownsampleMaskFilter for (size_t y = 0; y < dithered.get_height(); ++y) { for (size_t x = 0; x < dithered.get_width(); ++x) { - mask_.coeffRef(y, x) = dithered.get_pixel(x, y); + mask_.coeffRef(static_cast(y), static_cast(x)) = dithered.get_pixel(x, y); } }