Skip to content

Commit

Permalink
Refs #18687. Fix warning
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo González Moreno <[email protected]>
  • Loading branch information
richiware committed Jul 5, 2023
1 parent 773da96 commit ac76c57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpp/Cdr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Cdr& Cdr::read_encapsulation()
}

// Check encapsulationKind correctness
const uint8_t encoding_flag = encapsulation & ~0x1_8u;
const uint8_t encoding_flag = encapsulation & static_cast<uint8_t>(~0x1_8u);
switch (encoding_flag)
{
case EncodingAlgorithmFlag::PLAIN_CDR2:
Expand Down

0 comments on commit ac76c57

Please sign in to comment.