Skip to content

Commit b45c43e

Browse files
adriancampoJLBuenoLopez
authored andcommitted
Refs #20160: Windows warning.
Signed-off-by: adriancampo <[email protected]>
1 parent 38c3df5 commit b45c43e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cpp/fastdds/builtin/type_lookup_service/TypeLookupManager.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -810,18 +810,18 @@ std::string TypeLookupManager::get_instance_name(
810810
ss << std::hex;
811811
for (const auto& elem : guid.guidPrefix.value)
812812
{
813-
ss << std::setw(2) << std::setfill('0') << static_cast<unsigned int>(static_cast<unsigned char>(elem));
813+
ss << std::setw(2) << std::setfill('0') << static_cast<unsigned int>(elem);
814814
}
815815
for (const auto& elem : guid.entityId.value)
816816
{
817-
ss << std::setw(2) << std::setfill('0') << static_cast<unsigned int>(static_cast<unsigned char>(elem));
817+
ss << std::setw(2) << std::setfill('0') << static_cast<unsigned int>(elem);
818818
}
819819

820820
std::string str = ss.str();
821821
std::transform(str.begin(), str.end(), str.begin(),
822822
[](unsigned char c)
823823
{
824-
return std::tolower(c);
824+
return static_cast<char>(std::tolower(c));
825825
});
826826
return "dds.builtin.TOS." + str;
827827
}

0 commit comments

Comments
 (0)