diff options
author | Lev Walkin <vlm@lionet.info> | 2004-06-05 08:17:50 +0000 |
---|---|---|
committer | Lev Walkin <vlm@lionet.info> | 2004-06-05 08:17:50 +0000 |
commit | d9bd775af15aa7eacaea301de8344053221b3ba3 (patch) | |
tree | 16056f1fa90b24a32b46bcb276b4f5374122125d /libasn1parser/asn1p_expr_str.h | |
parent | 70e702872c991a425f25a5c412d6afada7995b37 (diff) |
enforsed compilation with -W -Werror
Diffstat (limited to 'libasn1parser/asn1p_expr_str.h')
-rw-r--r-- | libasn1parser/asn1p_expr_str.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libasn1parser/asn1p_expr_str.h b/libasn1parser/asn1p_expr_str.h index 02de131b..7d98a55c 100644 --- a/libasn1parser/asn1p_expr_str.h +++ b/libasn1parser/asn1p_expr_str.h @@ -45,13 +45,13 @@ static char *asn1p_expr_type2str[] __attribute__ ((unused)) = { /* * 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 */ |