Skip to content

Commit b51ec09

Browse files
committed
fix bug: 'null' atom ignored when using 17.0'
1 parent 74cffa3 commit b51ec09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/msgpack_packer.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ pack(true, _) ->
4545
pack(Bin, Opt) when is_binary(Bin) ->
4646
handle_binary(Bin, Opt);
4747

48-
pack(Atom, #options_v2{allow_atom=pack} = Opt) when is_atom(Atom) ->
48+
pack(Atom, ?OPTION{allow_atom=pack} = Opt) when is_atom(Atom) ->
4949
pack(erlang:atom_to_binary(Atom, unicode), Opt);
5050

5151
%% jiffy interface

0 commit comments

Comments
 (0)