Skip to content

Commit

Permalink
Add unsigned specification to literals (#5125) (#5149) (#5162)
Browse files Browse the repository at this point in the history
Signed-off-by: JesusPoderoso <[email protected]>
(cherry picked from commit daef938)

Co-authored-by: Jesús Poderoso <[email protected]>
  • Loading branch information
mergify[bot] and JesusPoderoso authored Aug 20, 2024
1 parent 790fb9f commit bbb4c58
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 bbb4c58

Please sign in to comment.