Skip to content

Commit 390a5b0

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 bfef427 commit 390a5b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/fastdds/rtps/common/InstanceHandle.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ inline std::ostream& operator <<(
301301
{
302302
ss << (int)iHandle.value[i] << ".";
303303
}
304-
ss << (int)iHandle.value[15] << std::dec;
304+
ss << (int)iHandle.value[15u] << std::dec;
305305
return output << ss.str();
306306
}
307307

@@ -334,9 +334,9 @@ inline std::istream& operator >>(
334334
input.setstate(std::ios_base::failbit);
335335
}
336336

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

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

0 commit comments

Comments
 (0)