From f98d003e354a1792117b7cbc771d1dd91475a156 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 18 Mar 2011 17:48:29 +0200 Subject: Fix most old style cast except manaserv and libxml2 defines. --- src/particlecontainer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/particlecontainer.cpp') 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(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(index)) return; Particle *p = mIndexedElements[index]; -- cgit v1.2.3-60-g2f50