Skip to content

Commit

Permalink
Refs #21638. Fix windows warning.
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Company <[email protected]>
  • Loading branch information
MiguelCompany committed Sep 19, 2024
1 parent 8828dc5 commit 8115cfa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/unittest/rtps/builtin/BuiltinDataSerializationTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2315,7 +2315,9 @@ TEST(BuiltinDataSerializationTests, deserialization_of_big_parameters)
for (uint16_t pid = 0x2; pid <= 0x7FFF; ++pid)
{
// Clear big parameter
std::fill(buffer.begin() + encapsulation_length, buffer.begin() + encapsulation_length + parameter_length, 0);
octet zero = 0u;
auto param_begin = buffer.begin() + encapsulation_length;
std::fill(param_begin, param_begin + parameter_length, zero);

// Set the parameter ID of the big parameter
constexpr uint16_t big_parameter_plength = parameter_length - 4;
Expand Down

0 comments on commit 8115cfa

Please sign in to comment.