diff --git a/skeletons/OCTET_STRING_aper.c b/skeletons/OCTET_STRING_aper.c index 1f74918ae..f70ea2925 100644 --- a/skeletons/OCTET_STRING_aper.c +++ b/skeletons/OCTET_STRING_aper.c @@ -269,10 +269,8 @@ OCTET_STRING_encode_aper(const asn_TYPE_descriptor_t *td, case ASN_OSUBV_ANY: case ASN_OSUBV_STR: canonical_unit_bits = unit_bits = 8; -/* if(cval->flags & APC_CONSTRAINED) - unit_bits = 8; -*/ + unit_bits = cval->range_bits; bpc = OS__BPC_CHAR; sizeinunits = st->size; break;