Skip to content

Commit

Permalink
Update integer type used internally for enums
Browse files Browse the repository at this point in the history
  • Loading branch information
mitza-oci committed Mar 28, 2024
1 parent dac02d4 commit 9835582
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dds/idl/dds_generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,9 @@ inline std::string to_cxx_type(AST_Type* type, std::size_t& size)
const AstTypeClassification::Classification cls = AstTypeClassification::classify(type);
if (cls & AstTypeClassification::CL_ENUM) {
size = 4;
return "ACE_CDR::ULong";
// Using the XTypes definition of Enums, this type is signed.
// It contradicts the OMG standard CDR definition.
return "ACE_CDR::Long";
}
if (cls & AstTypeClassification::CL_STRING) {
return string_type(cls);
Expand Down

0 comments on commit 9835582

Please sign in to comment.