generate float instead of double if constraints suggest this
diff --git a/libasn1compiler/asn1c_misc.h b/libasn1compiler/asn1c_misc.h
index f9f3c45..77e3827 100644
--- a/libasn1compiler/asn1c_misc.h
+++ b/libasn1compiler/asn1c_misc.h
@@ -23,8 +23,9 @@
TNF_UNMODIFIED = 0x10, /* Return unmodified type name */
TNF_INCLUDE = 0x20, /* Format for #include <> */
TNF_CTYPE = 0x30, /* Format as normal C-ish type (append "_t") */
- TNF_SAFE = 0x40, /* Replace unsafe characters with _ */
- TNF_RSAFE = 0x50, /* Recursion-safe C type format */
+ TNF_CONSTYPE = 0x40, /* Replace unsafe characters with _ */
+ TNF_SAFE = 0x50, /* Replace unsafe characters with _ */
+ TNF_RSAFE = 0x60, /* Recursion-safe C type format */
};
const char *asn1c_type_name(arg_t *arg, asn1p_expr_t *expr, enum tnfmt _format);