Fixed -Wshadow warnings
[libcds.git] / test / stress / queue / pop.cpp
index 21c0610511a57923ac90b369a0f3e686a70310f5..cd5ab8a555410cc5bd77262eee635acd03e752c9 100644 (file)
@@ -131,8 +131,8 @@ namespace {
             size_t nTotalPops = 0;
             for ( size_t i = 0; i < pool.size(); ++i ) {
                 Consumer<Queue>& thread = static_cast<Consumer<Queue>&>(pool.get( i ));
-                for ( size_t i = 0; i < s_nQueueSize; ++i )
-                    arr[i] += thread.m_arr[i];
+                for ( size_t j = 0; j < s_nQueueSize; ++j )
+                    arr[j] += thread.m_arr[j];
                 nTotalPops += thread.m_nPopCount;
             }
             EXPECT_EQ( nTotalPops, s_nQueueSize );