From dc85a196596bdef367a9ae8a84d0412119f2ccb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez?= Date: Wed, 11 Sep 2024 07:45:48 +0200 Subject: [PATCH] Fix warning on Windows (#396) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ricardo González Moreno --- .../com/eprosima/fastcdr/idl/templates/TypesHeader.stg | 8 +++++++- 1 file changed, 7 insertions(+), 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 e1d7f70d..d3b83b03 100644 --- a/src/main/java/com/eprosima/fastcdr/idl/templates/TypesHeader.stg +++ b/src/main/java/com/eprosima/fastcdr/idl/templates/TypesHeader.stg @@ -123,7 +123,7 @@ public: const_decl(ctx, parent, const, const_type) ::= << $const_type$ -const $const.typeCode.cppTypename$ $const.name$ = $const.value$; +const $const.typeCode.cppTypename$ $const.name$ = $const.value$$const_value_prefix(const)$; >> typedef_decl(ctx, parent, typedefs, typedefs_type, declarator_type) ::= << @@ -822,6 +822,12 @@ m__d = $first(member.labels)$; $endif$ %> +const_value_prefix(const) ::= <% +$if(const.typeCode.isFloat32Type)$ +f +$endif$ +%> + //{ Fast DDS-Gen extensions module_conversion(ctx, parent, modules, definition_list) ::= << $modules : { module |