From 7fa594d2ba3cdcfa1770b006a05d7bee346dd669 Mon Sep 17 00:00:00 2001 From: hristov Date: Wed, 31 Jan 2007 17:44:39 +0000 Subject: [PATCH] Do not hide variables from the outer scope. Explicit cast to avoid warnings (Solaris x86) --- STEER/AliAlignmentTracks.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/STEER/AliAlignmentTracks.cxx b/STEER/AliAlignmentTracks.cxx index 17ec9ece104..efc068e5674 100644 --- a/STEER/AliAlignmentTracks.cxx +++ b/STEER/AliAlignmentTracks.cxx @@ -222,7 +222,7 @@ void AliAlignmentTracks::BuildIndex() // to initialize the volume paths AliAlignObjAngles alobj; - TFile *fPointsFile = TFile::Open(fPointsFilename); + fPointsFile = TFile::Open(fPointsFilename); if (!fPointsFile || !fPointsFile->IsOpen()) { AliWarning(Form("Can't open %s !",fPointsFilename.Data())); return; @@ -237,7 +237,7 @@ void AliAlignmentTracks::BuildIndex() } fPointsTree->SetBranchAddress("SP", &array); - Int_t nArrays = fPointsTree->GetEntries(); + Int_t nArrays = (Int_t)fPointsTree->GetEntries(); for (Int_t iArray = 0; iArray < nArrays; iArray++) { fPointsTree->GetEvent(iArray); @@ -561,7 +561,7 @@ Int_t AliAlignmentTracks::LoadPoints(const TArrayI *volids, AliTrackPointArray** for (Int_t i = 0; i < nArrays; i++) points[i] = 0x0; // Init the array used to flag already loaded tree entries - Bool_t *indexUsed = new Bool_t[fPointsTree->GetEntries()]; + Bool_t *indexUsed = new Bool_t[(UInt_t)fPointsTree->GetEntries()]; for (Int_t i = 0; i < fPointsTree->GetEntries(); i++) indexUsed[i] = kFALSE; -- 2.43.0