Fix build for Erlang < 20

This commit is contained in:
Simon Skorokhodov 2018-03-07 11:38:04 +01:00
parent fde61fe7aa
commit c2bcd16bf5

View File

@ -436,7 +436,7 @@ to_type({Type, _DefaultArg}, Arg) ->
to_type(binary, Arg) -> to_type(binary, Arg) ->
list_to_binary(Arg); list_to_binary(Arg);
to_type(utf8_binary, Arg) -> to_type(utf8_binary, Arg) ->
unicode:characters_to_nfc_binary(Arg); unicode:characters_to_binary(Arg);
to_type(atom, Arg) -> to_type(atom, Arg) ->
list_to_atom(Arg); list_to_atom(Arg);
to_type(integer, Arg) -> to_type(integer, Arg) ->