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); } }