From f548abfb7ef76ddf3828d5f90abe2f9df80d5b7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= Date: Thu, 4 Dec 2014 10:43:11 +0100 Subject: 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. --- lib/asn1/src/asn1ct_parser2.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/asn1') 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; -- cgit v1.2.3