Fix local variable shadowing
authorPierre-Emmanuel Viel <p.emmanuel.viel@gmail.com>
Wed, 21 May 2014 10:27:38 +0000 (12:27 +0200)
committerPierre-Emmanuel Viel <p.emmanuel.viel@gmail.com>
Wed, 21 May 2014 10:27:38 +0000 (12:27 +0200)
modules/flann/include/opencv2/flann/lsh_index.h

index 2530a01..23988d4 100644 (file)
@@ -118,8 +118,8 @@ public:
             if( (indices.size() == feature_size_ * CHAR_BIT) || (indices.size() < key_size_) )
             {
               indices.resize( feature_size_ * CHAR_BIT );
-              for (size_t i = 0; i < feature_size_ * CHAR_BIT; ++i)
-                  indices[i] = i;
+              for (size_t j = 0; j < feature_size_ * CHAR_BIT; ++j)
+                  indices[j] = j;
               std::random_shuffle(indices.begin(), indices.end());
             }