Merge pull request #40 from suprematic/master

Fix build for Erlang < 20
This commit is contained in:
Juan Jose Comellas 2018-03-07 08:49:10 -03:00 committed by GitHub
commit dcaf340a8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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