]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
minor modification (proper C++ type cast)
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 24 Sep 2007 09:32:30 +0000 (09:32 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 24 Sep 2007 09:32:30 +0000 (09:32 +0000)
HLT/TPCLib/AliHLTTPCDigitReaderUnpacked.cxx

index f5159cf0153bd7a0f60256d93c7b8f312c2e4264..6be073edfb45a02fce22ce9018c164dfbba81732 100644 (file)
@@ -96,7 +96,7 @@ int AliHLTTPCDigitReaderUnpacked::InitBlock(void* ptr,unsigned long size, Int_t
   fPtr = ptr;
   fSize = size;
 
-  tmpptr = (AliHLTTPCUnpackedRawData*) fPtr;
+  tmpptr = reinterpret_cast<AliHLTTPCUnpackedRawData*>(fPtr);
   fDigitRowData = (AliHLTTPCDigitRowData*) tmpptr->fDigits;
   fActRowData = (AliHLTTPCDigitRowData*) fDigitRowData;
 
@@ -105,12 +105,12 @@ int AliHLTTPCDigitReaderUnpacked::InitBlock(void* ptr,unsigned long size, Int_t
   fFirstRow=AliHLTTPCTransform::GetFirstRow(patch);
   fLastRow=AliHLTTPCTransform::GetLastRow(patch);
 
-  return 0;
   fRow = fFirstRow; 
 
   if ((Int_t)fActRowData->fRow != fRow){
       HLTWarning("Row number should match! fActRowData->fRow=%d fRow=%d", fActRowData->fRow, fRow);
   }
+  return 0;
 }
 
 bool AliHLTTPCDigitReaderUnpacked::Next(){