use explicite cast from double to int
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 14 Jun 2011 13:24:05 +0000 (13:24 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 14 Jun 2011 13:24:05 +0000 (13:24 +0000)
HLT/BASE/AliHLTTrackGeometry.cxx

index 47f7007..580202c 100644 (file)
@@ -165,7 +165,7 @@ void AliHLTTrackGeometry::Draw(Option_t *option)
       m->Draw("same");
       firstalpha=alpha;
     } else {
-      color+=9*TMath::Abs(alpha-firstalpha)/TMath::Pi();
+      color+=int(9*TMath::Abs(alpha-firstalpha)/TMath::Pi());
     }
     TMarker* m=new TMarker(x/(2*scale)+center[0], y/(2*scale)+center[1], point->GetV()>0?2:5);
     m->SetMarkerColor(color);