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 <[email protected]>
  • Loading branch information
JesusPoderoso authored Aug 19, 2024
1 parent 55ca0aa commit daef938
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/fastdds/rtps/common/InstanceHandle.h
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,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 @@ -332,9 +332,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 daef938

Please sign in to comment.