Explanatory comment
This commit is contained in:
parent
68e6a2163e
commit
15ee836ddb
@ -120,6 +120,9 @@ make_string(S) when is_list(S) ->
|
|||||||
?FATE_STRING(list_to_binary(lists:flatten(S)));
|
?FATE_STRING(list_to_binary(lists:flatten(S)));
|
||||||
make_string(S) when is_binary(S) -> ?FATE_STRING(S).
|
make_string(S) when is_binary(S) -> ?FATE_STRING(S).
|
||||||
|
|
||||||
|
%% Tag points to the selected variant (zero based)
|
||||||
|
%% The arity of this variant is read from the list of provided arities
|
||||||
|
%% and should match the size of the given tuple.
|
||||||
make_variant(Arities, Tag, Values) ->
|
make_variant(Arities, Tag, Values) ->
|
||||||
Arities = [A || A <- Arities, is_integer(A), A < 256],
|
Arities = [A || A <- Arities, is_integer(A), A < 256],
|
||||||
Size = length(Arities),
|
Size = length(Arities),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user