Skip to content

Commit

Permalink
Use different typename for TK_UINT8 and TK_BYTE (#160)
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo González Moreno <[email protected]>
  • Loading branch information
richiware authored Sep 20, 2024
1 parent 39de736 commit e49c39d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/eprosima/idl/parser/typecode/TypeCode.java
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,10 @@ public boolean isIsUnionType()
// Functions to ease TypeIdentifier and TypeObject generation.
public String getCppTypenameForTypeId()
{
if (Kind.KIND_OCTET == m_kind)
{
return "byte";
}
String s = getCppTypename();
return s.equals("long double") ? "longdouble" : s;
}
Expand Down

0 comments on commit e49c39d

Please sign in to comment.