From 549ef803a9d2d8af9a55add5b678ffd5a3fc40f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez?= Date: Fri, 21 Jun 2024 10:11:11 +0200 Subject: [PATCH] Enumerations as signed integer (#359) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ricardo González Moreno --- .../java/com/eprosima/fastcdr/idl/templates/TypesHeader.stg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/eprosima/fastcdr/idl/templates/TypesHeader.stg b/src/main/java/com/eprosima/fastcdr/idl/templates/TypesHeader.stg index 881ea12c..b7fd6016 100644 --- a/src/main/java/com/eprosima/fastcdr/idl/templates/TypesHeader.stg +++ b/src/main/java/com/eprosima/fastcdr/idl/templates/TypesHeader.stg @@ -561,7 +561,7 @@ enum_type(ctx, parent, enum) ::= << * @brief This class represents the enumeration $enum.name$ defined by the user in the IDL file. * @ingroup $ctx.trimfilename$ */ -enum class $enum.name$ : uint32_t +enum class $enum.name$ : int32_t { $enum.members:{ member | $member.name$}; separator=",\n"$ };