Index: trunk/MagicSoft/Mars/mhflux/MMcSpectrumWeight.cc
===================================================================
--- trunk/MagicSoft/Mars/mhflux/MMcSpectrumWeight.cc	(revision 9337)
+++ trunk/MagicSoft/Mars/mhflux/MMcSpectrumWeight.cc	(revision 9552)
@@ -489,5 +489,9 @@
         // Ratio between the number of events in the zenith angle
         // bin corresponding to x and the new spectrum.
+#if ROOT_VERSION_CODE < ROOT_VERSION(5,26,00)
         const Double_t f = h.Integral(x, x, -1, 9999)/norm;
+#else
+        const Double_t f = h.Integral(x, x)/norm;
+#endif
 
         // Fill histogram with the "new spectrum" between
