diff --git a/modules/shape/test/test_shape.cpp b/modules/shape/test/test_shape.cpp index 6a84f2bc4f..0601594f08 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)