aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/src/asn1ct_func.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2017-02-28 10:38:01 +0100
committerBjörn Gustavsson <[email protected]>2017-03-14 09:47:40 +0100
commit1831c36cc0d7c98917ae3bd274071c9c450a9c02 (patch)
tree3df94e8fd33afff20d2069603e4c01c729656e8e /lib/asn1/src/asn1ct_func.erl
parent3334c0c7b831ecf47738c713fd764eef891a298a (diff)
downloadotp-1831c36cc0d7c98917ae3bd274071c9c450a9c02.tar.gz
otp-1831c36cc0d7c98917ae3bd274071c9c450a9c02.tar.bz2
otp-1831c36cc0d7c98917ae3bd274071c9c450a9c02.zip
asn1ct_gen_per: Fix broken dialyzer suppression function
ce431409d0daba broke generation of dialyzer suppressions for per and uper. While we are it, add type tests to asn1ct_func:is_used/1 to avoid similar problems in the future.
Diffstat (limited to 'lib/asn1/src/asn1ct_func.erl')
-rw-r--r--lib/asn1/src/asn1ct_func.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asn1/src/asn1ct_func.erl b/lib/asn1/src/asn1ct_func.erl
index 0cd72acf9d..016161fcaf 100644
--- a/lib/asn1/src/asn1ct_func.erl
+++ b/lib/asn1/src/asn1ct_func.erl
@@ -65,7 +65,7 @@ generate(Fd) ->
Funcs = sofs:to_external(Funcs0),
ok = file:write(Fd, Funcs).
-is_used({_,_,_}=MFA) ->
+is_used({M,F,A}=MFA) when is_atom(M), is_atom(F), is_integer(A) ->
req({is_used,MFA}).