diff --git a/src/rm_auto_aim/armor_detector/src/light_corner_corrector.cpp b/src/rm_auto_aim/armor_detector/src/light_corner_corrector.cpp index db8ca67..a6d3997 100644 --- a/src/rm_auto_aim/armor_detector/src/light_corner_corrector.cpp +++ b/src/rm_auto_aim/armor_detector/src/light_corner_corrector.cpp @@ -151,7 +151,7 @@ cv::Point2f LightCornerCorrector::findCorner(const cv::Mat &gray_img, std::vector candidates; // Limit candidates for performance - use subsampling for wide lights - int n = std::max(1, light.width - 2); + int n = std::max(1, static_cast(light.width) - 2); int stride = std::max(1, n / 5); // Limit to ~5 samples regardless of width int half_n = std::round(n / 2);