]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/TPCLib/tracking-ca/AliHLTTPCCATracker.h
fixing clang issues
[u/mrichter/AliRoot.git] / HLT / TPCLib / tracking-ca / AliHLTTPCCATracker.h
index 7abf200b011c12569e3bd094ce0f31f60898b5e9..0de647f714bb2640018d21f16b22dc2b40517340 100644 (file)
@@ -260,7 +260,7 @@ MEM_CLASS_PRE() class AliHLTTPCCATracker
   GPUd() static int CalculateHitWeight( int NHits, float chi2, int ) {
     const float chi2_suppress = 6.f;
     float weight = (((float) NHits * (chi2_suppress - chi2 / 500.f)) * (1e9 / chi2_suppress / 160.));
-    if (weight < 0 || weight > 2e9) weight = 0;
+    if (weight < 0. || weight > 2e9) return 0;
     return ( (int) weight );
     //return( (NHits << 16) + num);
   }