Commit 6713bcb0 authored by Lev Walkin's avatar Lev Walkin

0..MAX constraint is positive for OER

parent 5994072b
...@@ -2147,6 +2147,9 @@ emit_single_member_OER_constraint_value(arg_t *arg, asn1cnst_range_t *range) { ...@@ -2147,6 +2147,9 @@ emit_single_member_OER_constraint_value(arg_t *arg, asn1cnst_range_t *range) {
if(range->incompatible || range->not_OER_visible) { if(range->incompatible || range->not_OER_visible) {
OUT("{ 0, 0 }"); OUT("{ 0, 0 }");
} else if(range->left.type == ARE_VALUE && range->left.value >= 0
&& range->right.type == ARE_MAX) {
OUT("{ 0, 1 }");
} else if(range->left.type == ARE_VALUE && } else if(range->left.type == ARE_VALUE &&
range->right.type == ARE_VALUE) { range->right.type == ARE_VALUE) {
asn1c_integer_t lb = range->left.value; asn1c_integer_t lb = range->left.value;
......
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