]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Corrected UInt_t <-> Int_t conversion
authorhaavard <haavard@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 31 Aug 2011 12:50:56 +0000 (12:50 +0000)
committerhaavard <haavard@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 31 Aug 2011 12:50:56 +0000 (12:50 +0000)
TPC/AliTPCSensorTemp.cxx

index 167daca2f70b142417c1d7b5b78314087ef01717..a634d439e5bd0177c42144908490f71313b6cc14 100644 (file)
@@ -185,7 +185,7 @@ TClonesArray * AliTPCSensorTemp::ReadTree(TTree *tree,
   Int_t sector=0;
   char  type[100];
   char  side[100];
-  UInt_t num=0;
+  Int_t num=0;
   Int_t echa=0;
   //Double_t x=0;
   //Double_t y=0;
@@ -329,7 +329,7 @@ TClonesArray * AliTPCSensorTemp::ReadTree(TTree *tree,
       temp->SetZ(-240);
       }
 
-    if ( num < (sizeof(kTSz)/sizeof(kTSz[0]))) {
+    if ( num < (Int_t)(sizeof(kTSz)/sizeof(kTSz[0]))) {
       if(temp->GetType()==5 && temp->GetSide()==0) {
          temp->SetZ(kTSz[num]);
       }