Index: trunk/MagicSoft/Mars/mraw/MRawEvtHeader.cc
===================================================================
--- trunk/MagicSoft/Mars/mraw/MRawEvtHeader.cc	(revision 2326)
+++ trunk/MagicSoft/Mars/mraw/MRawEvtHeader.cc	(revision 2328)
@@ -247,10 +247,10 @@
     const Double_t mhz = 9.375;                          // [1e6 ticks/s]
     const Double_t t   = (Double_t)fAbsTime[0]/mhz*1e-3; // [ns]
-    const Double_t ns  = (UShort_t)fmod(t, 1e9);
-    const Double_t s   = (Byte_t)fmod(t/1e9, 60);
-    const Double_t m   = (Byte_t)fmod(t/60e9, 60);
-    const Double_t h   = (Byte_t)(t/3600e9);
-
-    fTime->SetTime((Byte_t)h, (Byte_t)m, (Byte_t)s, (UShort_t)ns);
+    const UShort_t ns  = (UShort_t)fmod(t, 1e9);
+    const Byte_t s     = (Byte_t)fmod(t/1e9, 60);
+    const Byte_t m     = (Byte_t)fmod(t/60e9, 60);
+    const Byte_t h     = (Byte_t)(t/3600e9);
+
+    fTime->SetTime(h, m, s, ns);
     fTime->SetTime(fAbsTime[0], fAbsTime[1]);
 
