aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2016-01-10 13:33:08 -0800
committerLev Walkin <vlm@lionet.info>2016-01-10 13:33:08 -0800
commit0f2624523b06040c4bd61581b573b9b09b791a97 (patch)
tree949470a747043602659077291bebef968da7204c
parentf76132009a38af5d83bf51bca69747dd5eea794b (diff)
bit strings also can haz members
-rw-r--r--libasn1compiler/asn1c_C.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libasn1compiler/asn1c_C.c b/libasn1compiler/asn1c_C.c
index bbb9393f..144febe2 100644
--- a/libasn1compiler/asn1c_C.c
+++ b/libasn1compiler/asn1c_C.c
@@ -1776,7 +1776,8 @@ expr_elements_count(arg_t *arg, asn1p_expr_t *expr) {
if(!(topmost_parent->expr_type & ASN_CONSTR_MASK)
&& !(topmost_parent->expr_type == ASN_BASIC_INTEGER)
- && !(topmost_parent->expr_type == ASN_BASIC_ENUMERATED))
+ && !(topmost_parent->expr_type == ASN_BASIC_ENUMERATED)
+ && !(topmost_parent->expr_type == ASN_BASIC_BIT_STRING))
return 0;
TQ_FOR(v, &(topmost_parent->members), next) {