Index: trunk/MagicSoft/Mars/mhist/MHOnSubtraction.cc
===================================================================
--- trunk/MagicSoft/Mars/mhist/MHOnSubtraction.cc	(revision 2321)
+++ trunk/MagicSoft/Mars/mhist/MHOnSubtraction.cc	(revision 2326)
@@ -332,6 +332,6 @@
   upperBin = alphaHisto.GetXaxis()->FindBin( signalRegionFactor*gausSigma+gausMean);
 
-  lowerBin = alphaHisto.GetBinLowEdge(lowerBin);
-  upperBin = alphaHisto.GetBinLowEdge(upperBin)+alphaHisto.GetBinWidth(upperBin);
+  lowerBin = alphaHisto.GetBinLowEdge((Int_t)lowerBin);
+  upperBin = alphaHisto.GetBinLowEdge((Int_t)upperBin)+alphaHisto.GetBinWidth((Int_t)upperBin);
   
   sigLiMa = CalcSignificance(nOnInt, nOffInt, 1);
@@ -388,4 +388,5 @@
 
   TF1* po;
+  po = NULL;
 
   if (gausPol) {
@@ -642,5 +643,5 @@
 
   fChiSquareHisto = new TH1D("fChiSquareHisto", "#chi^{2}/d.o.f. of fits", 50, 0, 5);
-  fSignificanceHisto = new TH1D("fSignificanceHisto", "Significances", 40.5, -0.5, 41);
+  fSignificanceHisto = new TH1D("fSignificanceHisto", "Significances", 41, -0.5, 40.5);
   fSummedAlphaPlots = new TH1D("fSummedAlphaPlots", "Cumulative Alpha", 
 			       alphaBins,aetHisto->GetXaxis()->GetBinLowEdge(1),
@@ -1490,5 +1491,5 @@
     fChiSquareHisto = new TH1D("fChiSquareHisto", "#chi^{2}/d.o.f. of fits", 50, 0, 5);
   if (fSignificanceHisto==0x0)
-    fSignificanceHisto = new TH1D("fSignificanceHisto", "Significances", 40.5, -0.5, 41);
+    fSignificanceHisto = new TH1D("fSignificanceHisto", "Significances", 41, -0.5, 40.5);
   if (fSummedAlphaPlots==0x0)
     fSummedAlphaPlots = new TH1D("fSummedAlphaPlots", "Cumulative Alpha", 
