Skip to content

Commit

Permalink
Refs #20815: Cast loop index to uint16_t for assigning it to the key …
Browse files Browse the repository at this point in the history
…field

Signed-off-by: eduponz <eduardoponz@eprosima.com>
  • Loading branch information
EduPonz committed May 30, 2024
1 parent 0f3f00f commit d01e6ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/blackbox/common/DDSBlackboxTestsContentFilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ TEST(DDSContentFilter, OnlyFilterAliveChanges)
for (size_t i = 0; i < num_samples; ++i)
{
KeyedHelloWorld data;
data.key(i);
data.key(static_cast<uint16_t>(i));
data.index(1u); // All samples pass the filter
InstanceHandle_t handle = writer.register_instance(data);
ASSERT_NE(HANDLE_NIL, handle);
Expand Down

0 comments on commit d01e6ac

Please sign in to comment.