natural constraint is only valid in the root of enumeration

git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@1385 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
vlm 2007-07-23 09:57:00 +00:00
parent a1166c0c51
commit d024d0bc56
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ NativeEnumerated_encode_uper(asn_TYPE_descriptor_t *td,
if(ct->flags & APC_EXTENSIBLE) {
if(per_put_few_bits(po, inext, 1))
_ASN_ENCODE_FAILED;
ct = 0;
if(inext) ct = 0;
} else if(inext) {
_ASN_ENCODE_FAILED;
}