From 82320082fac6e2c110b40e1d145b78ba043bb205 Mon Sep 17 00:00:00 2001 From: "y.qiu" Date: Wed, 26 Feb 2025 08:44:11 +0800 Subject: [PATCH] static check: small fix --- grayMatch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grayMatch.cpp b/grayMatch.cpp index 70d2e3e..4e229c3 100644 --- a/grayMatch.cpp +++ b/grayMatch.cpp @@ -833,7 +833,7 @@ std::vector matchModel(const cv::Mat &dst, const Model *model, int level, Pose{static_cast(candidate.pos.x), static_cast(candidate.pos.y), static_cast(candidate.angle), static_cast(candidate.score)}); - if (result.size() >= maxCount) { + if (result.size() >= static_cast(maxCount)) { break; } }