Fix OTP-24 warnings and add OTP-24 compatible rebar3 #224

Merged
zxq9 merged 2 commits from otp-24-support into master 2021-11-10 00:27:23 +09:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 52e9d30f76 - Show all commits

BIN
rebar3

Binary file not shown.

View File

@ -356,7 +356,7 @@ parse_tuple(Tokens) ->
parse_variant([{start_variant,_line}
, {'[', _line}
, {'[', _}
| Rest]) ->
{Arities, Rest2} = parse_list(Rest),
%% Make sure Arities is a list of bytes.
@ -364,7 +364,7 @@ parse_variant([{start_variant,_line}
is_integer(A), A < 256],
[{'|',_}
, {int,_line, Tag}
, {int,_, Tag}
, {'|',_}
, {'(',_} | Rest3] = Rest2,
{Elements , [{end_variant, _} | Rest4]} = parse_tuple(Rest3),