Skip to content

Commit 3ded683

Browse files
committed
Add unsigned specification to literals (#5125) (#5149)
Signed-off-by: JesusPoderoso <[email protected]> (cherry picked from commit daef938) Signed-off-by: JesusPoderoso <[email protected]>
1 parent 4945931 commit 3ded683

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/fastdds/rtps/common/InstanceHandle.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ inline std::ostream& operator <<(
298298
{
299299
output << (int)iHandle.value[i] << ".";
300300
}
301-
output << (int)iHandle.value[15] << std::dec;
301+
output << (int)iHandle.value[15u] << std::dec;
302302
return output;
303303
}
304304

@@ -331,9 +331,9 @@ inline std::istream& operator >>(
331331
input.setstate(std::ios_base::failbit);
332332
}
333333

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

336-
for (int i = 1; i < 16; ++i)
336+
for (uint8_t i = 1; i < 16; ++i)
337337
{
338338
input >> point >> hex;
339339
if ( point != '.' || hex > 255 )

0 commit comments

Comments
 (0)