Skip to content

Commit

Permalink
Apply APER fix for vlm#293 by @brchiu
Browse files Browse the repository at this point in the history
  • Loading branch information
mouse07410 committed Sep 30, 2018
1 parent 6306aaf commit 8dbccbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions skeletons/constr_SEQUENCE.c
Original file line number Diff line number Diff line change
Expand Up @@ -1835,7 +1835,7 @@ SEQUENCE_encode_aper(const asn_TYPE_descriptor_t *td,

/* Eliminate default values */
if(present && elm->default_value_cmp
&& elm->default_value_cmp(memb_ptr2) == 1)
&& elm->default_value_cmp(memb_ptr2) == 0)
present = 0;

ASN_DEBUG("Element %s %s %s->%s is %s",
Expand Down Expand Up @@ -1881,7 +1881,7 @@ SEQUENCE_encode_aper(const asn_TYPE_descriptor_t *td,
}

/* Eliminate default values */
if(elm->default_value_cmp && elm->default_value_cmp(memb_ptr2) == 1)
if(elm->default_value_cmp && elm->default_value_cmp(memb_ptr2) == 0)
continue;

ASN_DEBUG("Encoding %s->%s", td->name, elm->name);
Expand Down

0 comments on commit 8dbccbc

Please sign in to comment.