diff --git a/examples/yolact.cpp b/examples/yolact.cpp index 0ca94cdf0ab6024ca17feeb424ef148fe48e0266..88fbfb7d65e2b500b910685f75777458b5ea4890 100644 --- a/examples/yolact.cpp +++ b/examples/yolact.cpp @@ -298,7 +298,7 @@ static int detect_yolact(const cv::Mat& bgr, std::vector& objects) } // generate mask - for (int i = 0; i < objects.size(); i++) + for (int i = 0; i < (int)objects.size(); i++) { Object& obj = objects[i];