Index: trunk/FACT++/src/ratescan.cc
===================================================================
--- trunk/FACT++/src/ratescan.cc	(revision 18141)
+++ trunk/FACT++/src/ratescan.cc	(revision 18142)
@@ -79,5 +79,5 @@
     void UpdateProc()
     {
-        const array<uint32_t,3> v = {{ fThresholdMin, fThresholdMax, fThresholdStep }};
+        const array<uint32_t,3> v = {{ uint32_t(fThresholdMin), uint32_t(fThresholdMax), uint32_t(fThresholdStep) }};
         fDimProc.Update(v);
     }
@@ -237,5 +237,5 @@
         //    return kSM_FatalError;
 
-        string fType   = evt.Ptr<char>(12);
+        const string fType = evt.Ptr<char>(12);
 
         auto it = fTypes.find(fType);
@@ -251,11 +251,7 @@
             }
         }
-        //const config &conf = it->second;
-
-        if (it!=fTypes.end())
-        {
-            fCounterMax=it->second.fCounterMax;
-            fResolution=it->second.fResolution;
-        }
+
+        fCounterMax = it->second.fCounterMax;
+        fResolution = it->second.fResolution;
 
         fCommand = "FTM_CONTROL/"+command;
