Skip to content

Commit

Permalink
Adding in @realcorvus changes to fix range issue`
Browse files Browse the repository at this point in the history
Merge remote-tracking branch 'realcorvus/master' into error-fixes
  • Loading branch information
houllette committed Dec 7, 2023
2 parents 15e4876 + c3169ba commit b7a8b3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sobelow/parse.ex
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ defmodule Sobelow.Parse do
end

defp create_fun_cap(fun, meta, idx) when is_number(idx) do
opts = Enum.map(1..idx, fn i -> {:&, [], [i]} end)
opts = Enum.map(1..trunc(idx), fn i -> {:&, [], [i]} end)
{fun, meta, opts}
end

Expand Down

0 comments on commit b7a8b3d

Please sign in to comment.