Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 9379)
+++ trunk/MagicSoft/Mars/Changelog	(revision 9380)
@@ -49,4 +49,11 @@
    * mhist/Makefile:
      - removed accidental MHQuality
+
+   * mhist/MHCamera.cc:
+     - fixed a warning when calling DistancetoPrimitive
+
+   * mgeom/MGeomCamSquare.cc:
+     - accidentaly used Double_t instead of Short_t when calling
+       SetNeighbors
 
 
Index: trunk/MagicSoft/Mars/mgeom/MGeomCamSquare.cc
===================================================================
--- trunk/MagicSoft/Mars/mgeom/MGeomCamSquare.cc	(revision 9379)
+++ trunk/MagicSoft/Mars/mgeom/MGeomCamSquare.cc	(revision 9380)
@@ -94,10 +94,10 @@
             SetAt(idx, MGeomRectangle((0.5*nx-x)*diameter, (0.5*ny-y)*diameter, diameter));
 
-            const Double_t n0 = x==nx-1 ? -1. : idx+ny;
-            const Double_t n1 = x==0    ? -1. : idx-ny;
-            const Double_t n2 = y==ny-1 ? -1. : idx+1;
-            const Double_t n3 = y==0    ? -1. : idx-1;
+            const Short_t n0 = x==nx-1 ? -1. : idx+ny;
+            const Short_t n1 = x==0    ? -1. : idx-ny;
+            const Short_t n2 = y==ny-1 ? -1. : idx+1;
+            const Short_t n3 = y==0    ? -1. : idx-1;
 
-            Double_t n[4] = { n0, n1, n2, n3 };
+            Short_t n[4] = { n0, n1, n2, n3 };
 
             // Sort -1's to the end
Index: trunk/MagicSoft/Mars/mhist/MHCamera.cc
===================================================================
--- trunk/MagicSoft/Mars/mhist/MHCamera.cc	(revision 9379)
+++ trunk/MagicSoft/Mars/mhist/MHCamera.cc	(revision 9380)
@@ -1,4 +1,4 @@
 /* ======================================================================== *\
-! $Name: not supported by cvs2svn $:$Id: MHCamera.cc,v 1.120 2009-03-02 14:32:50 tbretz Exp $
+! $Name: not supported by cvs2svn $:$Id: MHCamera.cc,v 1.121 2009-03-03 13:32:00 tbretz Exp $
 ! --------------------------------------------------------------------------
 !
@@ -2028,5 +2028,5 @@
 
     for (Int_t i=0; i<fNcells-2; i++)
-        if ((*fGeomCam)[i].DistancetoPrimitive(px*conv, py*conv)<=0)
+        if ((*fGeomCam)[i].DistancetoPrimitive(TMath::Nint(px*conv), TMath::Nint(py*conv))<=0)
             return i;
 
