Skip to content

Commit 0bd0c61

Browse files
committed
Fix windows compilation error
Signed-off-by: Mario Dominguez <[email protected]>
1 parent 6d1dd96 commit 0bd0c61

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/cpp/rtps/security/SecurityManager.cpp

+6-3
Original file line numberDiff line numberDiff line change
@@ -1070,9 +1070,11 @@ void SecurityManager::delete_participant_stateless_message_entities()
10701070
void SecurityManager::create_participant_stateless_message_pool()
10711071
{
10721072
participant_stateless_message_writer_hattr_ =
1073-
{ PREALLOCATED_WITH_REALLOC_MEMORY_MODE, PARTICIPANT_STATELESS_MESSAGE_PAYLOAD_DEFAULT_SIZE, 20, 100};
1073+
{ PREALLOCATED_WITH_REALLOC_MEMORY_MODE, static_cast<uint32_t>(PARTICIPANT_STATELESS_MESSAGE_PAYLOAD_DEFAULT_SIZE),
1074+
20, 100};
10741075
participant_stateless_message_reader_hattr_ =
1075-
{ PREALLOCATED_WITH_REALLOC_MEMORY_MODE, PARTICIPANT_STATELESS_MESSAGE_PAYLOAD_DEFAULT_SIZE, 10, 5000};
1076+
{ PREALLOCATED_WITH_REALLOC_MEMORY_MODE, static_cast<uint32_t>(PARTICIPANT_STATELESS_MESSAGE_PAYLOAD_DEFAULT_SIZE),
1077+
10, 5000};
10761078

10771079
BasicPoolConfig cfg{ PREALLOCATED_WITH_REALLOC_MEMORY_MODE, PARTICIPANT_STATELESS_MESSAGE_PAYLOAD_DEFAULT_SIZE};
10781080
participant_stateless_message_pool_ = TopicPayloadPoolRegistry::get("DCPSParticipantStatelessMessage", cfg);
@@ -1226,7 +1228,8 @@ void SecurityManager::delete_participant_volatile_message_secure_entities()
12261228
void SecurityManager::create_participant_volatile_message_secure_pool()
12271229
{
12281230
participant_volatile_message_secure_hattr_ =
1229-
{ PREALLOCATED_WITH_REALLOC_MEMORY_MODE, PARTICIPANT_VOLATILE_MESSAGE_PAYLOAD_DEFAULT_SIZE, 10, 0 };
1231+
{ PREALLOCATED_WITH_REALLOC_MEMORY_MODE, static_cast<uint32_t>(PARTICIPANT_VOLATILE_MESSAGE_PAYLOAD_DEFAULT_SIZE),
1232+
10, 0 };
12301233

12311234
PoolConfig pool_cfg = PoolConfig::from_history_attributes(participant_volatile_message_secure_hattr_);
12321235
participant_volatile_message_secure_pool_ =

0 commit comments

Comments
 (0)