Commit 4ef7c320 authored by Lev Walkin's avatar Lev Walkin

comparison with sign

parent 27ea3808
......@@ -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)] \
......
......@@ -38,8 +38,8 @@ print<<EOM;
*/
#define ASN_EXPR_TYPE2STR(type) \\
( \\
((type) < 0 \\
|| (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)] \\
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment