diff options
author | montag451 <montag451@laposte.net> | 2020-03-09 23:37:07 +0100 |
---|---|---|
committer | montag451 <montag451@laposte.net> | 2020-03-09 23:37:07 +0100 |
commit | 42a8bb4497268680780a88279f0347822efa10ac (patch) | |
tree | 972f149fae30248d695a7b96eaf4e2d2b00d9f2c /lib/asn1 | |
parent | 58a2954e9283edf971cc3fad0614f767c40ee292 (diff) | |
download | erlang-42a8bb4497268680780a88279f0347822efa10ac.tar.gz |
Fix ERL-1189
Diffstat (limited to 'lib/asn1')
-rw-r--r-- | lib/asn1/src/asn1ct.erl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/asn1/src/asn1ct.erl b/lib/asn1/src/asn1ct.erl index 5708d5cb7e..2fd98ab51f 100644 --- a/lib/asn1/src/asn1ct.erl +++ b/lib/asn1/src/asn1ct.erl @@ -1693,6 +1693,9 @@ create_pdec_command(ModName,{'CHOICE',[Comp=#'ComponentType'{name=C1}|_]},TNL=[C create_pdec_command(ModName,[Comp],TNL,Acc); create_pdec_command(ModName,{'CHOICE',[#'ComponentType'{}|Comps]},TNL,Acc) -> create_pdec_command(ModName,{'CHOICE',Comps},TNL,Acc); +create_pdec_command(ModName,{'CHOICE',{Cs1,Cs2}},TNL,Acc) + when is_list(Cs1),is_list(Cs2) -> + create_pdec_command(ModName,{'CHOICE',Cs1 ++ Cs2},TNL,Acc); create_pdec_command(ModName,#'Externaltypereference'{module=M,type=C1}, TypeNameList,Acc) -> #type{def=Def} = get_referenced_type(M,C1), |