Skip to content

Commit

Permalink
Fix other range step warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sabiwara committed May 25, 2024
1 parent c40d3da commit fecbc87
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
matrix:
include:
- elixir: "1.11"
- elixir: "1.12"
otp: "23.3"
- elixir: "1.14"
otp: "25.3"
Expand Down
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

## Dev

### Enhancements

- Fix compilation warnings due to supporting Elixir 1.11

### Breaking changes

- Drop support for Elixir 1.10
- Drop support for Elixir 1.10 and 1.11

## v0.6.5 (2024-04-26)

Expand Down
2 changes: 1 addition & 1 deletion lib/enum.ex
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ defmodule Aja.Enum do
%Aja.Vector{__vector__: vector} -> RawVector.size(vector)
%Aja.OrdMap{__ord_map__: map} -> map_size(map)
%MapSet{} -> MapSet.size(enumerable)
start..stop -> abs(start - stop) + 1
_.._//_ -> Range.size(enumerable)
_ -> Enum.count(enumerable)
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/vector/codegen.ex
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ defmodule Aja.Vector.CodeGen do
Enum.take(@arguments_ast, i)
end

def argument_at(i) when i in 0..(@branch_factor - 1) do
def argument_at(i) when i in 0..(@branch_factor - 1)//1 do
Enum.at(@arguments_ast, i)
end

Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ defmodule Aja.MixProject do
[
app: :aja,
version: @version,
elixir: "~> 1.11",
elixir: "~> 1.12",
deps: deps(),
consolidate_protocols: Mix.env() != :test,
aliases: aliases(),
Expand Down

0 comments on commit fecbc87

Please sign in to comment.