From 0995869eced0b41b4c81e24440428a806c943654 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez=20Moreno?= Date: Tue, 10 Sep 2024 11:48:00 +0200 Subject: [PATCH] Refs #20165. Fix warning on Windows 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 |