]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Correct default filling in ctor (Laurent)
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 20 Oct 2006 15:58:38 +0000 (15:58 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 20 Oct 2006 15:58:38 +0000 (15:58 +0000)
MUON/AliMUONCalibParam1I.cxx

index 44de1427ef53f897b3eed16d9b4a6e88d37a5711..e980c3f093c6ee924dcd2d3e1b048d93f3254f34 100644 (file)
@@ -62,7 +62,10 @@ AliMUONCalibParam1I::AliMUONCalibParam1I(Int_t theSize, Int_t fillWithValue)
   if ( fSize > 0 )
   {
     fValues = new Int_t[fSize];
-    memset(fValues,fillWithValue,fSize*sizeof(Int_t));
+    for ( Int_t i = 0; i < fSize; ++i )
+    {
+      fValues[i] = fillWithValue;
+    }
   }
 }