Skip to content

Commit

Permalink
memory: Fix bugprone-too-small-loop-variable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
stotko committed Apr 19, 2020
1 parent 37be976 commit 68ff172
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/stdgpu/memory.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1463,7 +1463,7 @@ TEST_F(STDGPU_MEMORY_TEST_CLASS, construct_at)
ASSERT_EQ(Counter::constructor_calls, 0);
ASSERT_EQ(Counter::destructor_calls, 0);

for (stdgpu::index_t i = 0; i < size; ++i)
for (stdgpu::index64_t i = 0; i < size; ++i)
{
stdgpu::construct_at(array + i);
}
Expand Down Expand Up @@ -1535,7 +1535,7 @@ TEST_F(STDGPU_MEMORY_TEST_CLASS, destroy_at)
ASSERT_EQ(Counter::constructor_calls, 0);
ASSERT_EQ(Counter::destructor_calls, 0);

for (stdgpu::index_t i = 0; i < size; ++i)
for (stdgpu::index64_t i = 0; i < size; ++i)
{
stdgpu::destroy_at(array + i);
}
Expand Down

0 comments on commit 68ff172

Please sign in to comment.