aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/src/asn1ct_check.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2013-04-08 10:16:37 +0200
committerBjörn Gustavsson <[email protected]>2013-05-31 14:52:23 +0200
commit83fe4f33369c6c33f6241d279611dc2b91594298 (patch)
tree14eaa292b464df4123ac7ccd36a5edd52e7b92ea /lib/asn1/src/asn1ct_check.erl
parentf6269228fdac5c11decb9e5daef81b859a942936 (diff)
downloadotp-83fe4f33369c6c33f6241d279611dc2b91594298.tar.gz
otp-83fe4f33369c6c33f6241d279611dc2b91594298.tar.bz2
otp-83fe4f33369c6c33f6241d279611dc2b91594298.zip
Normalize data representation for table constraints
The name of the referenced object set name in #simpletableattributes{} would when used by INSTANCE OF be an atom, but in all other cases be a {Module,ObjectSetName} tuple. Simplify the code by always using the latter format.
Diffstat (limited to 'lib/asn1/src/asn1ct_check.erl')
-rw-r--r--lib/asn1/src/asn1ct_check.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/asn1/src/asn1ct_check.erl b/lib/asn1/src/asn1ct_check.erl
index b6e2bc6e95..0a95cbd3b5 100644
--- a/lib/asn1/src/asn1ct_check.erl
+++ b/lib/asn1/src/asn1ct_check.erl
@@ -5136,7 +5136,8 @@ instance_of_constraints(S, [{simpletable,Type}]) ->
[{innermost,
[#'Externalvaluereference'{module=ModuleName,
value=type}]}]}],
- TableCInf=#simpletableattributes{objectsetname=Name,
+ Mod = S#state.mname,
+ TableCInf=#simpletableattributes{objectsetname={Mod,Name},
c_name='type-id',
c_index=1,
usedclassfield=id,