generate PER code tables for known-multiplier strings
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@1230 59561ff5-6e30-0410-9f3c-9617f08c8826
diff --git a/libasn1compiler/asn1c_C.c b/libasn1compiler/asn1c_C.c
index 18879d1..2acb5ea 100644
--- a/libasn1compiler/asn1c_C.c
+++ b/libasn1compiler/asn1c_C.c
@@ -1905,6 +1905,13 @@
tmprng.right.value = eidx < 0 ? 0 : eidx;
if(emit_single_member_PER_constraint(arg, &tmprng, 0))
return -1;
+ } else if(etype & ASN_STRING_KM_MASK) {
+ range = asn1constraint_compute_PER_range(etype,
+ expr->combined_constraints, ACT_CT_FROM,
+ 0, 0, 0);
+ if(emit_single_member_PER_constraint(arg, range, 0))
+ return -1;
+ asn1constraint_range_free(range);
} else {
range = asn1constraint_compute_PER_range(etype,
expr->combined_constraints, ACT_EL_RANGE,