Skip to content

Commit

Permalink
more generic signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
knstmrd committed Dec 19, 2024
1 parent b23e977 commit ee9cfb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/particles.jl
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ end
"""
Set underlying particle in ParticleVector with index i to a new particle
"""
function Base.setindex!(pv::ParticleVector, p::Particle, i::Int)
function Base.setindex!(pv::ParticleVector, p::Particle, i::Integer)
pv.particles[pv.index[i]] = p
end

Expand All @@ -130,7 +130,7 @@ end
"""
Resize a `ParticleVector`` instance
"""
function Base.resize!(pv::ParticleVector, n::Int)
function Base.resize!(pv::ParticleVector, n::Integer)
old_len = length(pv.particles)
resize!(pv.particles, n)
resize!(pv.index, n)
Expand Down

0 comments on commit ee9cfb2

Please sign in to comment.