Skip to content

Commit

Permalink
Fixed arg type for getindex
Browse files Browse the repository at this point in the history
  • Loading branch information
tk3369 committed Mar 7, 2018
1 parent 924839c commit f217006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ObjectPool.jl
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ end
# Base.IndexStyle(::Type{<:ObjectPool}) = IndexLinear()

# single indexing
Base.getindex(op::ObjectPool, i::Number) = op.pool[op.idx[convert(Int, i)]]
Base.getindex(op::ObjectPool, i::Integer) = op.pool[op.idx[convert(Int, i)]]

# general sizes
Base.size(op::ObjectPool) = (op.itemscount, )
Expand Down

0 comments on commit f217006

Please sign in to comment.