Using new/delete for variable size arrays (Solaris x86)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 9 May 2007 11:39:22 +0000 (11:39 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 9 May 2007 11:39:22 +0000 (11:39 +0000)
HLT/PHOS/AliHLTPHOSDataCorruptor.cxx

index 58d9976..8de7a66 100644 (file)
@@ -48,7 +48,7 @@ AliHLTPHOSDataCorruptor::MakeCorruptedDataTest(Double_t *dataArray, int N)
 {
   //  double testPulse[300];
   //  dataArray[300];
-  int quantisized[N];
+  int* quantisized = new int[N];
 
   fPulseGeneratorPtr->SetSampleFreq(10);
   fPulseGeneratorPtr->SetAmplitude(100);
@@ -87,6 +87,7 @@ AliHLTPHOSDataCorruptor::MakeCorruptedDataTest(Double_t *dataArray, int N)
     }
   cout << endl;
   cout << endl;
+  delete [] quantisized;
 }