From f443200d38c2af7f36f4eca134e62bd5d9e9f11b Mon Sep 17 00:00:00 2001
From: flocci <frank.locci@cern.sh>
Date: Fri, 8 Sep 2017 11:21:57 +0200
Subject: [PATCH] [SIL-310] cleanup: Remove simple warning

---
 .../src/silecs-communication/interface/utility/TimeStamp.h    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/silecs-communication-cpp/src/silecs-communication/interface/utility/TimeStamp.h b/silecs-communication-cpp/src/silecs-communication/interface/utility/TimeStamp.h
index e17dea7..2eaf76c 100644
--- a/silecs-communication-cpp/src/silecs-communication/interface/utility/TimeStamp.h
+++ b/silecs-communication-cpp/src/silecs-communication/interface/utility/TimeStamp.h
@@ -76,8 +76,8 @@ namespace Silecs {
 			double getTimeOfDay(double unit) {
 					timeval lCurrent;
 					::gettimeofday(&lCurrent, 0);
-					return ((lCurrent.tv_sec*YS_UNIT + lCurrent.tv_usec)*(unit/YS_UNIT));
-			}
+                    return (double)((lCurrent.tv_sec*YS_UNIT + lCurrent.tv_usec)*(unit/YS_UNIT));
+            }
 
 		protected:
 			bool mHardware;
-- 
GitLab