Browse Source

clang: unsigned>0 checks

Azaezel 9 years ago
parent
commit
aa614f60f8
2 changed files with 2 additions and 2 deletions
  1. 1 1
      Engine/source/T3D/fx/particleEmitter.h
  2. 1 1
      Engine/source/T3D/fx/ribbon.cpp

+ 1 - 1
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;                    ///<

+ 1 - 1
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;