mirror of https://gerrit.osmocom.org/asn1c
comparison with sign
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@38 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
parent
4a3f582a82
commit
bacb731f2b
|
@ -47,8 +47,8 @@ static char *asn1p_expr_type2str[] __attribute__ ((unused)) = {
|
|||
*/
|
||||
#define ASN_EXPR_TYPE2STR(type) \
|
||||
( \
|
||||
(((ssize_t)type) < 0 \
|
||||
|| ((size_t)type) >= sizeof(asn1p_expr_type2str) \
|
||||
(((ssize_t)(type)) < 0 \
|
||||
|| ((size_t)(type)) >= sizeof(asn1p_expr_type2str) \
|
||||
/ sizeof(asn1p_expr_type2str[0])) \
|
||||
? (char *)0 \
|
||||
: asn1p_expr_type2str[(type)] \
|
||||
|
|
|
@ -36,13 +36,13 @@ print<<EOM;
|
|||
/*
|
||||
* 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 */
|
||||
|
|
Loading…
Reference in New Issue