Pt 165180296 fix fate scanner #143

Merged
zxq9 merged 13 commits from PT-165180296-fix-fate-scanner into master 2019-04-10 17:49:34 +09:00
Showing only changes of commit 15ee836ddb - Show all commits

View File

@ -120,6 +120,9 @@ make_string(S) when is_list(S) ->
?FATE_STRING(list_to_binary(lists:flatten(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) ->
Arities = [A || A <- Arities, is_integer(A), A < 256],
Size = length(Arities),