minor fixes for clang++
[senf.git] / senf / Socket / Protocols / DatagramSocketProtocol.cc
index 39e4430..48bd1a8 100644 (file)
@@ -56,7 +56,7 @@ prefix_ senf::ClockService::clock_type senf::DatagramSocketProtocol::timestamp_s
     // this may reduce the precision, but we only care about +/- 1ms, for now 
     struct timeval tv;
     ::gettimeofday( &tv, NULL);
-    return tv.tv_sec * 1000000000LL + tv.tv_usec * 1000LL;
+    return ClockService::clock_type(tv.tv_sec * 1000000000LL + tv.tv_usec * 1000LL);
 }