Skip to content

Commit 86a5b63

Browse files
authored
[LOTC-2294] Fix warning for Range deprecation in elixir 1.18 (#12)
* [LOTC-2294] Fix warning for Range deprecation in elixir 1.18 * [LOTC-2294] bump ci cache action to v4 * [LOTC-2294] bump app version
1 parent ecf39c0 commit 86a5b63

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/pdf417.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
4141
- name: Retrieve Cached Dependencies
4242
id: mix-cache
43-
uses: actions/cache@v2
43+
uses: actions/cache@v4
4444
with:
4545
path: |
4646
./deps

lib/pdf417/error_correction.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ defmodule PDF417.ErrorCorrection do
1313
t1 = rem(codeword + List.last(int_error_cw), 929)
1414

1515
int_error_cw =
16-
(length(int_error_cw) - 1)..1
16+
Range.new(length(int_error_cw) - 1, 1, -1)
1717
|> Enum.reduce(int_error_cw, fn j, acc ->
1818
t2 = rem(t1 * Enum.at(coefficients, j), 929)
1919
t3 = 929 - t2

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule PDF417.MixProject do
22
use Mix.Project
33

4-
@version "0.1.0"
4+
@version "0.1.1"
55
@source_url "https://github.com/jackpocket/pdf417-elixir"
66

77
def project do

0 commit comments

Comments
 (0)