Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/pdf417/error_correction.ex
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ defmodule PDF417.ErrorCorrection do
t1 = rem(codeword + List.last(int_error_cw), 929)

int_error_cw =
(length(int_error_cw) - 1)..1
Range.new(length(int_error_cw) - 1, 1, -1)
|> Enum.reduce(int_error_cw, fn j, acc ->
t2 = rem(t1 * Enum.at(coefficients, j), 929)
t3 = 929 - t2
Expand Down
Loading