Skip to content

Commit 02d98d3

Browse files
committed
Merge pull request opencv#9518 from alalek:fix_flann_unsupported_type
2 parents e1ab227 + 7067c15 commit 02d98d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/flann/include/opencv2/flann/lsh_table.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,8 @@ inline LshTable<unsigned char>::LshTable(unsigned int feature_size, unsigned int
354354
mask_ = std::vector<size_t>((feature_size * sizeof(char) + sizeof(size_t) - 1) / sizeof(size_t), 0);
355355

356356
// A bit brutal but fast to code
357-
std::vector<size_t> indices(feature_size * CHAR_BIT);
358-
for (size_t i = 0; i < feature_size * CHAR_BIT; ++i) indices[i] = i;
357+
std::vector<int> indices(feature_size * CHAR_BIT);
358+
for (size_t i = 0; i < feature_size * CHAR_BIT; ++i) indices[i] = (int)i;
359359
#ifndef OPENCV_FLANN_USE_STD_RAND
360360
cv::randShuffle(indices);
361361
#else

0 commit comments

Comments
 (0)