aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/src
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2014-12-04 10:43:11 +0100
committerBjörn Gustavsson <[email protected]>2015-01-12 12:22:56 +0100
commitf548abfb7ef76ddf3828d5f90abe2f9df80d5b7c (patch)
tree7c506100e5d19ed6402432b5620aafcf7b2a4373 /lib/asn1/src
parenta19d71091ac0753e4cfd212b5f2686b53fdf355a (diff)
downloadotp-f548abfb7ef76ddf3828d5f90abe2f9df80d5b7c.tar.gz
otp-f548abfb7ef76ddf3828d5f90abe2f9df80d5b7c.tar.bz2
otp-f548abfb7ef76ddf3828d5f90abe2f9df80d5b7c.zip
asn1ct_parser2: Correct extraction of line number from token
The first position in a token tuple is always an atom, the second the line number. The code tested the third position.
Diffstat (limited to 'lib/asn1/src')
-rw-r--r--lib/asn1/src/asn1ct_parser2.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asn1/src/asn1ct_parser2.erl b/lib/asn1/src/asn1ct_parser2.erl
index f3a56e1b65..4e5c76539d 100644
--- a/lib/asn1/src/asn1ct_parser2.erl
+++ b/lib/asn1/src/asn1ct_parser2.erl
@@ -3032,7 +3032,7 @@ merge_constraints([], Cacc, []) ->
merge_constraints([], Cacc, Eacc) ->
lists:reverse(Cacc) ++ [{element_set,{'Errors',Eacc},none}].
-get_line({_,Pos,Token}) when is_integer(Pos),is_atom(Token) ->
+get_line({Token,Pos,_}) when is_integer(Pos), is_atom(Token) ->
Pos;
get_line({Token,Pos}) when is_integer(Pos),is_atom(Token) ->
Pos;