diff options
author | Gustav Simonsson <[email protected]> | 2012-02-13 10:39:05 +0100 |
---|---|---|
committer | Gustav Simonsson <[email protected]> | 2012-02-13 10:39:05 +0100 |
commit | 6c2e966d4fccf7ec60795a3293492862f76aba5c (patch) | |
tree | ad0f94e0bfc66c8d5b1dd67794ad3974bb9a2a6f /lib/asn1/src/asn1ct_check.erl | |
parent | 86231a380b27fc262e48aa8c3f0372d4d2056682 (diff) | |
download | otp-6c2e966d4fccf7ec60795a3293492862f76aba5c.tar.gz otp-6c2e966d4fccf7ec60795a3293492862f76aba5c.tar.bz2 otp-6c2e966d4fccf7ec60795a3293492862f76aba5c.zip |
Fix to integer and sequence definitions
Enable re-use of integer definitions in subsequent definitions and
added clauses to check greatest common range for sequence definitions
Diffstat (limited to 'lib/asn1/src/asn1ct_check.erl')
-rw-r--r-- | lib/asn1/src/asn1ct_check.erl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/asn1/src/asn1ct_check.erl b/lib/asn1/src/asn1ct_check.erl index e318477234..105fc02819 100644 --- a/lib/asn1/src/asn1ct_check.erl +++ b/lib/asn1/src/asn1ct_check.erl @@ -5253,6 +5253,9 @@ check_int(S,[{'NamedNumber',Id,Num}|T],Acc) when is_integer(Num) -> check_int(S,[{'NamedNumber',Id,{identifier,_,Name}}|T],Acc) -> Val = dbget_ex(S,S#state.mname,Name), check_int(S,[{'NamedNumber',Id,Val#valuedef.value}|T],Acc); +check_int(S,[{'NamedNumber',Id,{'Externalvaluereference',_,Mod,Name}}|T],Acc) -> + Val = dbget_ex(S,Mod,Name), + check_int(S,[{'NamedNumber',Id,Val#valuedef.value}|T],Acc); check_int(_S,[],Acc) -> lists:keysort(2,Acc). |