Skip to content

Commit

Permalink
Test for Int32
Browse files Browse the repository at this point in the history
  • Loading branch information
louisponet committed Mar 27, 2023
1 parent 2de0ece commit d4fe7ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iteration.jl
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ entity_pool(c::PooledComponent, e::AbstractEntity) = entity_pool(c, pool(c, e))
return Entity(i.c.indices.packed[n]), (n + 1, state[2] + 1)
end

Base.getindex(iterator::EntityPoolIterator, i) = iterate(iterator, (i, 1))[1]
Base.getindex(iterator::EntityPoolIterator, i::Int) = iterate(iterator, (i, 1))[1]

Base.IteratorSize(::Type{EntityPoolIterator}) = Base.HasLength()
Base.IteratorEltype(::Type{EntityPoolIterator}) = Base.HasEltype()
Expand Down

0 comments on commit d4fe7ea

Please sign in to comment.