Skip to content

Commit

Permalink
Add unsigned specification to literals (#5125) (#5149) (#5174)
Browse files Browse the repository at this point in the history
(cherry picked from commit daef938)

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>
Co-authored-by: Jesús Poderoso <120394830+JesusPoderoso@users.noreply.github.com>
  • Loading branch information
mergify[bot] and JesusPoderoso authored Aug 26, 2024
1 parent 4945931 commit 4c460ef
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 @@ -298,7 +298,7 @@ inline std::ostream& operator <<(
{
output << (int)iHandle.value[i] << ".";
}
output << (int)iHandle.value[15] << std::dec;
output << (int)iHandle.value[15u] << std::dec;
return output;
}

Expand Down Expand Up @@ -331,9 +331,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 4c460ef

Please sign in to comment.