Skip to content

Commit

Permalink
Add unsigned specification to literals (#5125) (#5149)
Browse files Browse the repository at this point in the history
Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>
(cherry picked from commit daef938)
  • Loading branch information
JesusPoderoso authored and mergify[bot] committed Aug 19, 2024
1 parent bfef427 commit 390a5b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/fastdds/rtps/common/InstanceHandle.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ inline std::ostream& operator <<(
{
ss << (int)iHandle.value[i] << ".";
}
ss << (int)iHandle.value[15] << std::dec;
ss << (int)iHandle.value[15u] << std::dec;
return output << ss.str();
}

Expand Down Expand Up @@ -334,9 +334,9 @@ inline std::istream& operator >>(
input.setstate(std::ios_base::failbit);
}

iHandle.value[0] = static_cast<octet>(hex);
iHandle.value[0u] = static_cast<octet>(hex);

for (int i = 1; i < 16; ++i)
for (uint8_t i = 1; i < 16; ++i)
{
input >> point >> hex;
if ( point != '.' || hex > 255 )
Expand Down

0 comments on commit 390a5b0

Please sign in to comment.