]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDarrayI.cxx
Make use of new method AliRawReader::GetNumberOfEvents() - goinf to the last event...
[u/mrichter/AliRoot.git] / TRD / AliTRDarrayI.cxx
index 1e1936dd6792691f222f3fb141a4dab5cb93c731..605f6880ccb03d36273f3eb00a73520883ae8ea1 100644 (file)
@@ -70,11 +70,17 @@ void AliTRDarrayI::Expand(Int_t n)
   // The user is responsible for the appropriate size of the array.
   //
 
-  if (n < 0) return;  
-  fArray = (Int_t*) TStorage::ReAlloc(fArray
-                                     ,n  * sizeof(Int_t)
-                                     ,fN * sizeof(Int_t));
-  if (fArray != 0) fN = n;
+  if (n < 0) {
+    return;  
+  }
+
+  fArray = (Int_t *) TStorage::ReAlloc(fArray
+                                      ,n *sizeof(Int_t)
+                                      ,fN*sizeof(Int_t));
+
+  if (fArray != 0) {
+    fN = n;
+  }
  
 }