Index: trunk/MagicSoft/Mars/mhist/MHCamera.cc
===================================================================
--- trunk/MagicSoft/Mars/mhist/MHCamera.cc	(revision 4907)
+++ trunk/MagicSoft/Mars/mhist/MHCamera.cc	(revision 4915)
@@ -1202,7 +1202,7 @@
     for (Int_t idx=0; idx<fNcells-2; idx++)
     {
-        Fill(idx, const_cast<TArrayD&>(event)[idx]); // FIXME: Slow!
-
-        if (!used || (*const_cast<TArrayC*>(used))[idx])
+        Fill(idx, event[idx]); // FIXME: Slow!
+
+        if (!used || (*used)[idx])
             SetUsed(idx);
     }
@@ -1216,5 +1216,5 @@
 void MHCamera::AddCamContent(const MArrayD &event, const TArrayC *used)
 {
-    if (event.GetSize()!=fNcells-2 || IsFreezed())
+    if (event.GetSize()!=(UInt_t)(fNcells-2) || IsFreezed())
         return;
 
@@ -1224,7 +1224,7 @@
     for (Int_t idx=0; idx<fNcells-2; idx++)
     {
-        Fill(idx, const_cast<MArrayD&>(event)[idx]); // FIXME: Slow!
-
-        if (!used || (*const_cast<TArrayC*>(used))[idx])
+        Fill(idx, event[idx]); // FIXME: Slow!
+
+        if (!used || (*used)[idx])
             SetUsed(idx);
     }
