]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDgtuTMU.cxx
explicitly fix type of long constant
[u/mrichter/AliRoot.git] / TRD / AliTRDgtuTMU.cxx
index 92984079cf489c236ffbeb4749fce5a0585c386a..c1587d8d3af5d5500ac6c39c68f22cb5b05f088f 100644 (file)
@@ -853,7 +853,7 @@ Bool_t AliTRDgtuTMU::CalculatePID(AliTRDtrackGTU *track)
     }
 
     ULong64_t sumExt = (sum << 1) & 0xfff; // 11 bit -> 12 bit vector
-    ULong64_t prod   = (sumExt * coeff) & 0xfffffffff; // 18x18 signed -> 36
+    ULong64_t prod   = (sumExt * coeff) & 0xfffffffffull; // 18x18 signed -> 36
     ULong64_t prodFinal = ((prod >> 18) + ((prod >> 17) & 1)) & 0xff; // rounding term is equivalent to adding 5 to sum_ext
 
     track->SetPID(prodFinal & 0xff);