Skip to content

Commit

Permalink
Fix implicit conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich committed Dec 3, 2024
1 parent 3b871fb commit 773dc72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hardware_interface/test/test_macros.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ TEST_F(TestMacros, throw_on_not_null)
EXPECT_ANY_THROW(THROW_ON_NOT_NULLPTR(a_ptr));

std::vector<int *> vec_ptr;
for (size_t i : {0, 1, 2})
for (size_t i = 0; i < 3; ++i)
{
vec_ptr.push_back(i_ptr);
EXPECT_ANY_THROW(THROW_ON_NOT_NULLPTR(vec_ptr[i]));
Expand Down

0 comments on commit 773dc72

Please sign in to comment.