summaryrefslogtreecommitdiff
path: root/lib/asn1/src/asn1ct_gen_check.erl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/asn1/src/asn1ct_gen_check.erl')
-rw-r--r--lib/asn1/src/asn1ct_gen_check.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/asn1/src/asn1ct_gen_check.erl b/lib/asn1/src/asn1ct_gen_check.erl
index 4996491fa7..0e8cd557a4 100644
--- a/lib/asn1/src/asn1ct_gen_check.erl
+++ b/lib/asn1/src/asn1ct_gen_check.erl
@@ -2,7 +2,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2014-2017. All Rights Reserved.
+%% Copyright Ericsson AB 2014-2023. All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
@@ -167,8 +167,8 @@ do_seq_set(#gen{pack=map}=Gen, Cs0, Default) ->
end, Cs),
case AllLiterals of
true ->
- L = [{Name,Lit} || {Name,{literal,Lit}} <- Cs],
- {literal,maps:from_list(L)};
+ M = #{Name => Lit || {Name,{literal,Lit}} <- Cs},
+ {literal,M};
false ->
Key = {Cs,Default},
DoGen = fun(Fd, Name) ->