Skip to content

Commit fc894e6

Browse files
committed
Goodbye, OTP 19, 20 and 21; hello, OTP 24
1 parent 8856e29 commit fc894e6

File tree

3 files changed

+5
-22
lines changed

3 files changed

+5
-22
lines changed

.github/workflows/ci.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@ jobs:
1616
image: erlang:${{matrix.otp_vsn}}
1717
strategy:
1818
matrix:
19-
otp_vsn: [19.0, 19.1, 19.2, 19.3,
20-
20.0, 20.1, 20.2, 20.3,
21-
21.0, 21.1, 21.2, 21.3,
22-
22.0, 22.1, 22.2, 22.3,
23-
23.0, 23.1, 23.2]
19+
otp_vsn: [22.0, 22.1, 22.2, 22.3,
20+
23.0, 23.1, 23.2, 23.3,
21+
24.0]
2422
os: [ubuntu-latest]
2523
steps:
2624
- uses: actions/checkout@v2

rebar.config

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
{minimum_otp_vsn, "19"}.
1+
{minimum_otp_vsn, "22"}.
22

33
{erl_opts,
4-
[{platform_define, "^[2-9]", 'POST_OTP_19'},
5-
{platform_define, "^((2[3-9])|([3-9]))", 'POST_OTP_22'},
4+
[{platform_define, "^((2[3-9])|([3-9]))", 'POST_OTP_22'},
65
%bin_opt_info,
76
debug_info,
87
warn_export_all,

src/erlffx.erl

-14
Original file line numberDiff line numberDiff line change
@@ -226,20 +226,6 @@ fk(Config, P, RoundIndex, B_Value) ->
226226
integer_to_list(ParamZ, Radix)]),
227227
ParamZ.
228228

229-
-ifndef(POST_OTP_19).
230-
-spec ceil(float()) -> integer().
231-
ceil(V) when V < 0.0 ->
232-
case (V - trunc(V)) >= -0.5 of
233-
true -> trunc(V);
234-
false -> trunc(V - 1)
235-
end;
236-
ceil(V) ->
237-
case (V - trunc(V)) >= 0.5 of
238-
true -> trunc(V + 1);
239-
false -> trunc(V)
240-
end.
241-
-endif.
242-
243229
-spec generate_p(config()) -> p_value().
244230
generate_p(#{ tweak := Tweak,
245231
radix := Radix,

0 commit comments

Comments
 (0)