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:
vlm 2004-06-28 21:20:50 +00:00
parent 4a3f582a82
commit bacb731f2b
2 changed files with 9 additions and 9 deletions

View File

@ -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)] \

View File

@ -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 */