Skip to content

Commit 9437a7d

Browse files
JesusPoderosomergify[bot]
authored andcommitted
Add unsigned specification to literals (#5125) (#5149)
Signed-off-by: JesusPoderoso <[email protected]> (cherry picked from commit daef938)
1 parent 44fddab commit 9437a7d

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
@@ -299,7 +299,7 @@ inline std::ostream& operator <<(
299299
{
300300
ss << (int)iHandle.value[i] << ".";
301301
}
302-
ss << (int)iHandle.value[15] << std::dec;
302+
ss << (int)iHandle.value[15u] << std::dec;
303303
return output << ss.str();
304304
}
305305

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

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

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

0 commit comments

Comments
 (0)