aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2017-08-10 15:17:44 -0700
committerLev Walkin <vlm@lionet.info>2017-08-10 15:17:44 -0700
commit5d929d87c7724b5b45a847f25c0e417ed17c6a0c (patch)
treefb9098c91fb643b502c22533340d3321c10d3691
parentec6f7d5a25688b78c6d4d9d25956c79008905b2a (diff)
signedness fix
-rw-r--r--libasn1compiler/asn1c_C.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libasn1compiler/asn1c_C.c b/libasn1compiler/asn1c_C.c
index e2aece01..c360fe52 100644
--- a/libasn1compiler/asn1c_C.c
+++ b/libasn1compiler/asn1c_C.c
@@ -2626,7 +2626,7 @@ emit_member_type_selector(arg_t *arg, asn1p_expr_t *expr, asn1c_ioc_table_and_ob
crc->el_count,
crc->el_count >= 2 && crc->elements[1]->type == ACT_EL_VALUE
&& crc->elements[1]->value->type == ATV_REFERENCED
- ? crc->elements[1]->value->value.reference->comp_count
+ ? (signed)crc->elements[1]->value->value.reference->comp_count
: -1,
crc->el_count >= 2 && crc->elements[1]->type == ACT_EL_VALUE
&& crc->elements[1]->value->type == ATV_REFERENCED