From: Maksim Shabunin Date: Wed, 28 Jan 2015 15:11:53 +0000 (+0300) Subject: Fixed win64 compile warning X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~2695^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cf0a29ce4dda5a49d5a1732db7b7d3519324d158;p=platform%2Fupstream%2Fopencv.git Fixed win64 compile warning --- diff --git a/modules/shape/test/test_shape.cpp b/modules/shape/test/test_shape.cpp index 6a84f2b..0601594 100644 --- a/modules/shape/test/test_shape.cpp +++ b/modules/shape/test/test_shape.cpp @@ -121,7 +121,7 @@ protected: for (vector::const_iterator a = filenames.begin(); a != filenames.end(); ++a) { // read current image - int aIndex = a - filenames.begin(); + int aIndex = (int)(a - filenames.begin()); Mat currentQuery = imread(*a, IMREAD_GRAYSCALE); Mat flippedHQuery, flippedVQuery; flip(currentQuery, flippedHQuery, 0); @@ -133,7 +133,7 @@ protected: // compare with all the rest of the images: testing for (vector::const_iterator b = filenames.begin(); b != filenames.end(); ++b) { - int bIndex = b - filenames.begin(); + int bIndex = (int)(b - filenames.begin()); float distance = 0; // skip self-comparisson if (a != b)