enforsed compilation with -W -Werror
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@10 59561ff5-6e30-0410-9f3c-9617f08c8826
diff --git a/libasn1parser/asn1p_expr_str.h b/libasn1parser/asn1p_expr_str.h
index 02de131..7d98a55 100644
--- a/libasn1parser/asn1p_expr_str.h
+++ b/libasn1parser/asn1p_expr_str.h
@@ -45,13 +45,13 @@
/*
* Convert the ASN.1 expression type back into the string representation.
*/
-#define ASN_EXPR_TYPE2STR(type) \
- ( \
- ((type) < 0 \
- || (type) >= sizeof(asn1p_expr_type2str) \
- / sizeof(asn1p_expr_type2str[0])) \
- ? (char *)0 \
- : asn1p_expr_type2str[(type)] \
+#define ASN_EXPR_TYPE2STR(type) \
+ ( \
+ (((ssize_t)type) < 0 \
+ || ((size_t)type) >= sizeof(asn1p_expr_type2str) \
+ / sizeof(asn1p_expr_type2str[0])) \
+ ? (char *)0 \
+ : asn1p_expr_type2str[(type)] \
)
#endif /* ASN1_PARSER_EXPR_STR_H */