diff options
author | Gustav Simonsson <[email protected]> | 2012-02-16 14:28:33 +0100 |
---|---|---|
committer | Gustav Simonsson <[email protected]> | 2012-02-16 14:28:33 +0100 |
commit | ddefaf865cb357a11e0aa80315a461e774c0d6fb (patch) | |
tree | db95fd01eb847cef12b4dded236ce97a8ff5d8db /lib/asn1/src/asn1ct_gen_per_rt2ct.erl | |
parent | a7d95881e8701f1c071d9a957172027a287e6f73 (diff) | |
parent | da3d4c3bc803a8697c2e35c95d05417ac39ad497 (diff) | |
download | otp-ddefaf865cb357a11e0aa80315a461e774c0d6fb.tar.gz otp-ddefaf865cb357a11e0aa80315a461e774c0d6fb.tar.bz2 otp-ddefaf865cb357a11e0aa80315a461e774c0d6fb.zip |
Merge branch 'gustav/asn1-integer/sequence-fix/OTP-9688' into maint
Diffstat (limited to 'lib/asn1/src/asn1ct_gen_per_rt2ct.erl')
-rw-r--r-- | lib/asn1/src/asn1ct_gen_per_rt2ct.erl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/asn1/src/asn1ct_gen_per_rt2ct.erl b/lib/asn1/src/asn1ct_gen_per_rt2ct.erl index 1a0a0e211d..fb9613c18d 100644 --- a/lib/asn1/src/asn1ct_gen_per_rt2ct.erl +++ b/lib/asn1/src/asn1ct_gen_per_rt2ct.erl @@ -704,6 +704,10 @@ greatest_common_range([{_,Int}],VR=[{_,{_Lb,_Ub}}]) when is_integer(Int) -> greatest_common_range([{_,L}],[{_,{Lb,Ub}}]) when is_list(L) -> Min = least_Lb([Lb|L]), Max = greatest_Ub([Ub|L]), + [{'ValueRange',{Min,Max}}]; +greatest_common_range([{_,{Lb1,Ub1}}],[{_,{Lb2,Ub2}}]) -> + Min = least_Lb([Lb1,Lb2]), + Max = greatest_Ub([Ub1,Ub2]), [{'ValueRange',{Min,Max}}]. |