From cdb16f112074697445cc3c960142bc05dbfa916b Mon Sep 17 00:00:00 2001 From: peng xiao Date: Fri, 31 May 2013 17:29:55 +0800 Subject: [PATCH] Fix build error --- samples/ocl/surf_matcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/ocl/surf_matcher.cpp b/samples/ocl/surf_matcher.cpp index 8734e3f..038a8dc 100644 --- a/samples/ocl/surf_matcher.cpp +++ b/samples/ocl/surf_matcher.cpp @@ -350,7 +350,7 @@ int main(int argc, char* argv[]) else { bool result = false; - for(int i = 0; i < cpu_corner.size(); i++) + for(size_t i = 0; i < cpu_corner.size(); i++) { if((std::abs(cpu_corner[i].x - gpu_corner[i].x) > 10) ||(std::abs(cpu_corner[i].y - gpu_corner[i].y) > 10)) -- 2.7.4