Skip to content

Commit bbb4c58

Browse files
Add unsigned specification to literals (#5125) (#5149) (#5162)
Signed-off-by: JesusPoderoso <[email protected]> (cherry picked from commit daef938) Co-authored-by: Jesús Poderoso <[email protected]>
1 parent 790fb9f commit bbb4c58

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/fastdds/rtps/common/InstanceHandle.hpp

+3-3
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)