X-Git-Url: http://plrg.eecs.uci.edu/git/?p=libcds.git;a=blobdiff_plain;f=test%2Fstress%2Fqueue%2Fpop.cpp;h=cd5ab8a555410cc5bd77262eee635acd03e752c9;hp=21c0610511a57923ac90b369a0f3e686a70310f5;hb=1132246d5685f87a5b240e077b7e88d56e38b1ff;hpb=6abf48a3a808f76f07771a40f8fdd3d13be81e98;ds=sidebyside diff --git a/test/stress/queue/pop.cpp b/test/stress/queue/pop.cpp index 21c06105..cd5ab8a5 100644 --- a/test/stress/queue/pop.cpp +++ b/test/stress/queue/pop.cpp @@ -131,8 +131,8 @@ namespace { size_t nTotalPops = 0; for ( size_t i = 0; i < pool.size(); ++i ) { Consumer& thread = static_cast&>(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 );