From ff735573045226bc9c24717428339df9d14d9861 Mon Sep 17 00:00:00 2001 From: peng xiao Date: Tue, 16 Jul 2013 08:48:09 +0800 Subject: [PATCH] Fix compilation error on Mac --- modules/ocl/perf/perf_gftt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ocl/perf/perf_gftt.cpp b/modules/ocl/perf/perf_gftt.cpp index 4eec240..bca6f39 100644 --- a/modules/ocl/perf/perf_gftt.cpp +++ b/modules/ocl/perf/perf_gftt.cpp @@ -58,7 +58,7 @@ PERFTEST(GoodFeaturesToTrack) std::vector pts_gold, pts_ocl; - for(int imgIdx = 0; imgIdx < sizeof(images)/sizeof(std::string); ++imgIdx) + for(size_t imgIdx = 0; imgIdx < (sizeof(images)/sizeof(std::string)); ++imgIdx) { Mat frame = imread(abspath(images[imgIdx]), IMREAD_GRAYSCALE); CV_Assert(!frame.empty()); -- 2.7.4