From aa614f60f8e4e69224e2c8616023dae9a3291304 Mon Sep 17 00:00:00 2001 From: Azaezel Date: Fri, 14 Oct 2016 18:04:11 -0500 Subject: [PATCH] clang: unsigned>0 checks --- Engine/source/T3D/fx/particleEmitter.h | 2 +- Engine/source/T3D/fx/ribbon.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Engine/source/T3D/fx/particleEmitter.h b/Engine/source/T3D/fx/particleEmitter.h index 7e369ad26..18b4790f1 100644 --- a/Engine/source/T3D/fx/particleEmitter.h +++ b/Engine/source/T3D/fx/particleEmitter.h @@ -87,7 +87,7 @@ class ParticleEmitterData : public GameBaseData /// of the ambient color on the particle. F32 ambientFactor; - U32 lifetimeMS; ///< Lifetime of particles + S32 lifetimeMS; ///< Lifetime of particles U32 lifetimeVarianceMS; ///< Varience in lifetime from 0 to n bool overrideAdvance; ///< diff --git a/Engine/source/T3D/fx/ribbon.cpp b/Engine/source/T3D/fx/ribbon.cpp index 2936e7663..6ebcfc932 100644 --- a/Engine/source/T3D/fx/ribbon.cpp +++ b/Engine/source/T3D/fx/ribbon.cpp @@ -354,7 +354,7 @@ void Ribbon::addSegmentPoint(Point3F &point, MatrixF &mat) { U32 segmentsToDelete = checkRibbonDistance(mDataBlock->segmentsPerUpdate); for (U32 i = 0; i < segmentsToDelete; i++) { - U32 last = mSegmentPoints.size() - 1; + S32 last = mSegmentPoints.size() - 1; if (last < 0) break; mTravelledDistance += last ? (mSegmentPoints[last] - mSegmentPoints[last-1]).len() : 0;