diff options
Diffstat (limited to 'src/particlecontainer.cpp')
-rw-r--r-- | src/particlecontainer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/particlecontainer.cpp b/src/particlecontainer.cpp index bfeb2a694..72aed5df2 100644 --- a/src/particlecontainer.cpp +++ b/src/particlecontainer.cpp @@ -138,7 +138,7 @@ void ParticleVector::setLocally(int index, Particle *particle) delLocally(index); - if (mIndexedElements.size() <= (unsigned) index) + if (mIndexedElements.size() <= static_cast<unsigned>(index)) mIndexedElements.resize(index + 1, NULL); if (particle) @@ -151,7 +151,7 @@ void ParticleVector::delLocally(int index) if (index < 0) return; - if (mIndexedElements.size() <= (unsigned) index) + if (mIndexedElements.size() <= static_cast<unsigned>(index)) return; Particle *p = mIndexedElements[index]; |